KostyaSha / github-integration-plugin

Jenkins GitHub Integration Plugin
https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Integration+Plugin
MIT License
98 stars 85 forks source link

GitHub commit status fails silently but appears to successful in console output #351

Closed TarmoJussila closed 2 years ago

TarmoJussila commented 2 years ago

Description:

GitHub commit status fails silently but appears to be successful in console output. Commit status is not updated in GitHub commits.

The configuration was working fine some time ago, but suddenly stopped working after updating plugins and Jenkins. I did not notice the broken behaviour until recently because the pipelines were still succeeding.

Expected behaviour:

GitHub Integration commit status commands update the commit status on GitHub to related commit.

Actual behaviour:

GitHub Integration commit status command does not update the commit status on GitHub to related commit. Console output shows that the command has succeeded but it fails silently.

How to reproduce:

Use latest LTS version of Jenkins and latest version of GitHub Integration plugin (see versions below) with commit status steps and run a job.

Jenkins version: 2.332.2

Plugin version: 0.4.0

TarmoJussila commented 2 years ago

Issue was resolved by regenerating the private access token and resetting it in Jenkins configuration.