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

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



Solution 1:[1]

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.

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tarasovych
Solution 2 Gitesh kumar Jha