-
Bug
-
Resolution: Duplicate
-
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.
- is duplicated by
-
JENKINS-36574 Add option to choose static notification context
- Resolved