Jenkins, how to set build status on Github?

I installed Jenkins and Github in such a way that whenever I click commit on an existing pull request, it automatically adds a comment and starts the Jenkins build. Until today, Jenkins has amended this comment with build status and functional tests performed. (Therefore, I know this part works.)

Today, I updated Jenkins and Jenkins, stops notifying Github about build status. When I check the Jenkins configuration, the post-build section says:

Set build status to Github commit [deprecated]

This notifier will set the GH commit status. This step is DEPRECATED and will be moved to a new step in one of the next major releases of plugins. See New Universal Step.

Do they say that they removed the functionality, and I need to either lower it or wait for their recovery when they start releasing the update?

Alternatively, if they want me to start using this new “universal step”, where can I find the documentation for customization?

I looked at Show the current status of Jenkins on the GitHub repo , but it seems the answers to this question are outdated (answered six months ago).

I am currently using Jenkins version 2.3, Github plugin 1.19.1 and Github API plugin 1.75.

+6
source share
1 answer

I think you may have been bitten by this problem: https://wiki.jenkins-ci.org/display/JENKINS/Plugins+affected+by+fix+for+SECURITY-170

It says

If you use the standard specification of the $ {sha1} branch, assemblies will fail using "Could not find any revision for assembly." Pull requests remain pending since the plugin does not update the PR with the build result

It looks like this can be fixed using a whitelist of terms. In my case, it was handled by another engineer, so I cannot provide first-hand parts.

+3
source

All Articles