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

GitHub status check "context" should be constant

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Jenkins: 2.7.1
      github-api.jpi v1.76
      github-branch-source.jpi v1.8.1
      github-oauth.jpi v0.24
      github-organization-folder.jpi v1.4
      github.jpi v1.20.0

      When doing a pull request, the github PR page is updated with a status check showing the progress or result of a Jenkins build.

      Currently, the name for the status looks something like Jenkins job PR-1. In the github api docs, they call this the "context".

      The problem is that the "context" changes for each PR and branch. This makes setting up protections for branches impossible.

      If you turn on protections for a branch and then go to https://github.com/my-org/my-project/settings/branches/my-branch and turn on "Require status checks to pass before merging" you'll be shown "Status checks found in the last week for this repository" which might include (for example):

      • Jenkins job PR-1
      • Jenkins job PR-2
      • Jenkins job master

      You can't require any of these status checks because the next status check will have a context with a new (previously unseen) PR number.

      Instead, it should just say "Jenkins" or a customized name specified in the default branch's Jenkinsfile.

          [JENKINS-37100] GitHub status check "context" should be constant

          Christian Höltje created issue -
          Christian Höltje made changes -
          Summary Original: PR status name shouldn't vary New: GitHub status check "context" should be constant
          Christian Höltje made changes -
          Description Original: When doing a pull request the github PR page is updated with a "status" showing the progress or result of a Jenkins build.

          Currently, the name for the status looks something like {{Jenkins job PR-1}}.

          In the [github api docs|https://developer.github.com/v3/repos/statuses/], they call this the "context".

          The problem is that the "context" changes for each PR and branch. This makes setting up protections for branches impossible.

          If you turn on protections for a branch and then go to https://github.com/my-org/my-project/settings/branches/my-branch and turn on "Require status checks to pass before merging" you'll be shown "Status checks found in the last week for this repository" which might include (for example):

          * Jenkins job PR-1
          * Jenkins job PR-2
          * Jenkins job master

          You can't require any of these status checks because the next status check will have a context with a new (previously unseen) PR number.

          Instead, it should just say "Jenkins" or a customized name specified in the default branches {{Jenkinsfile}}.
          New: When doing a pull request, the github PR page is updated with a status check showing the progress or result of a Jenkins build.

          Currently, the name for the status looks something like {{Jenkins job PR-1}}. In the [github api docs|https://developer.github.com/v3/repos/statuses/], they call this the "context".

          The problem is that the "context" changes for each PR and branch. This makes setting up protections for branches impossible.

          If you turn on protections for a branch and then go to {{https://github.com/my-org/my-project/settings/branches/my-branch}} and turn on "Require status checks to pass before merging" you'll be shown "Status checks found in the last week for this repository" which might include (for example):

          * Jenkins job PR-1
          * Jenkins job PR-2
          * Jenkins job master

          You can't require any of these status checks because the next status check will have a context with a new (previously unseen) PR number.

          Instead, it should just say "Jenkins" or a customized name specified in the default branch's {{Jenkinsfile}}.
          Christian Höltje made changes -
          Environment Original: Jenkins: 2.7.1
          GitHub-Plugin: 1.20.0
          Git-Plugin: 2.5.3
          New: Jenkins: 2.7.1
          github-api.jpi v1.76
          github-branch-source.jpi v1.8.1
          github-oauth.jpi v0.24
          github-organization-folder.jpi v1.3
          github.jpi v1.19.3
          Christian Höltje made changes -
          Environment Original: Jenkins: 2.7.1
          github-api.jpi v1.76
          github-branch-source.jpi v1.8.1
          github-oauth.jpi v0.24
          github-organization-folder.jpi v1.3
          github.jpi v1.19.3
          New: Jenkins: 2.7.1
          github-api.jpi v1.76
          github-branch-source.jpi v1.8.1
          github-oauth.jpi v0.24
          github-organization-folder.jpi v1.4
          github.jpi v1.20.0
          Christian Höltje made changes -
          Component/s New: github-organization-folder-plugin [ 21427 ]
          Christian Höltje made changes -
          Link New: This issue is duplicated by JENKINS-36574 [ JENKINS-36574 ]
          Christian Höltje made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Kirill Merkushev made changes -
          Component/s Original: github-plugin [ 15896 ]

            lanwen Kirill Merkushev
            docwhat Christian Höltje
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: