We use several multibranch jobs for one repository. And the statuses of PR in github from different jobs are mixed. The context for github status hardcoded and can't be changed. It would be very convinient keep job name in context string.

          [JENKINS-46119] Use the job name in context string

          Viacheslav Dubrovskyi created issue -

          Jesse Glick added a comment -

          A naïve fix will regress JENKINS-36574.

          Jesse Glick added a comment - A naïve fix will regress  JENKINS-36574 .
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-36574 [ JENKINS-36574 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 153 (Web Link)" [ 17450 ]

          Then maybe it makes sense to add the ability to configure the context from the pipeline?

          Viacheslav Dubrovskyi added a comment - Then maybe it makes sense to add the ability to configure the context from the pipeline?

          Jesse Glick added a comment -

          More likely from the multibranch / organization folder. Fine so long as the default remains a fixed string (per job type, at any rate), and the inline help clearly explains why you might run into trouble customizing that.

          Jesse Glick added a comment - More likely from the multibranch / organization folder. Fine so long as the default remains a fixed string (per job type, at any rate), and the inline help clearly explains why you might run into trouble customizing that.

          Fabian Holler added a comment -

          When you run multiple Jenkins job per Github PR you currently end up with having several "continuous-integration/jenkins/" status messages.
          It's unclear which status refers to which CI job (build, test, etc).

          Alternatively being able to disable posting the status to github from the plugin at all would help.
          Then I could post the status myself with a script with the information I want.
          When I currently do this, I end up with multiple status messages for the same job run in github.

          Fabian Holler added a comment - When you run multiple Jenkins job per Github PR you currently end up with having several "continuous-integration/jenkins/" status messages. It's unclear which status refers to which CI job (build, test, etc). Alternatively being able to disable posting the status to github from the plugin at all would help. Then I could post the status myself with a script with the information I want. When I currently do this, I end up with multiple status messages for the same job run in github.

          Yo-An Lin added a comment -

          This is really annoying. the build commit status will be overwritten if you have more than 1 jobs triggered by a single commit because they are using the same context label. job name should be used for the context.

          Yo-An Lin added a comment - This is really annoying. the build commit status will be overwritten if you have more than 1 jobs triggered by a single commit because they are using the same context label. job name should be used for the context.

          Yo-An Lin added a comment -

          Is there a way to customize the context name via the pipeline api or jenkins api ?

          Yo-An Lin added a comment - Is there a way to customize the context name via the pipeline api or jenkins api ?

          Yo-An Lin added a comment -

          Do not do this. There was an issue specifically requesting that the context string not include details like a job name, and that was fixed. The reason is that GitHub has features whereby you can control various workflows by specifying approved status context strings, and they need to be an exact match.

          quote from a comment of the closed PR.

          Yo-An Lin added a comment - Do not do this. There was an issue specifically requesting that the context string not include details like a job name, and that was fixed. The reason is that GitHub has features whereby you can control various workflows by specifying approved status context strings, and they need to be an exact match. quote from a comment of the closed PR.

            Unassigned Unassigned
            dubrsl Viacheslav Dubrovskyi
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: