Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53824

GitHubCommitStatusSetter not working as expected with GHE


    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: github-plugin
    • Labels:
    • Environment:
      Jenkins 2.107.3
      github-plugin 1.29.2
    • Similar Issues:


      When using the GitHubCommitStatusSetter in conjunction with GitHub-Folder, GitHub Enterprise, and pipeline, the results are not as expected.

      First tests using the examples from the plugin page didn't lead to an error but also not to the desired result. Using the following code:


          $class: 'GitHubCommitStatusSetter',
          contextSource: [
              $class : 'ManuallyEnteredCommitContextSource',
              context: 'ci/jenkins/my-custom-status'
          statusResultSource: [
              $class : 'ConditionalStatusResultSource',
              results: [
                      $class : 'AnyBuildResult',
                      message: 'My message',
                      state  : 'PENDING'


      Led to the following console output:


      [Set GitHub commit status (universal)] PENDING on repos [] (sha:0259c98) with context:ci/jenkins/my-custom-status


      And no status was set on the commit. After following most of the suggested workarounds on the web (Manual Repo, Manual SHA etc) it still showed nothing.

      From looking at the code of the plugin and the logs of AnyRepo, it seemed that the step did not find the correct server.

      Going to the Configuration of Jenkins and looking at the configuration for GitHub. It seems that the GitHub Server config section now also allows enterprise servers as well but there is still the GitHub Enterprise section (where my server was listed).

      After some playing, I found that when I add the GHE server to the GitHub Server section as well, the commit status is working as expected.

      I also found that when I removed the entry in the GHE section (since it seemed to be working just fine with just the GitHub Servers section), GitHub Folders were failing and I was no longer able to select a server within the GitHub Folder config.




            • Assignee:
              lanwen Kirill Merkushev
              olira Oliver Rau
            • Votes:
              1 Vote for this issue
              2 Start watching this issue


              • Created: