How to change "default" Jenkins build status label on GitHub?

1.1k views Asked by At

What do I have:

  1. Jenkins job (Freestyle Project). Job trigger is GitHub Pull Request Builder
  2. GitHub repository
  3. Webhook to trigger the Jenkins job

What do I want: change "default" label from the screenshot below to something more specific, lets say, "Codestyle"

enter image description here

, so the text will be "Codestyle - Build finished."

What have I tried: adding GitHub commit status enter image description here It resulted in two build statuses:

enter image description here

2

There are 2 answers

0
Tarasovych On BEST ANSWER

Found a workaround (reference):

  1. GitHub Pull Request Builder -> Application Setup: enter image description here
  2. Job -> Build Triggers -> Trigger Setup enter image description here

Result:

enter image description here

To keep build statuses, I removed --none-- from "Commit Status Build Triggered" and "Commit Status Build Started" fields.

0
Gitesh kumar Jha On

Build triggers ==> Trigger Setup ==> Commit Status Context ==> Here specify the name and it will appear on the github.