Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins + Github Pull Request builder display name

For our project we use GitHub. We have TravicCI enabled (as this was required for our project to use). Besides that, we've also got a full instance of Jenkins running with the pull request builder.

Now this all works fine, and in the overview of a pull request this looks like this: Overview pull request

Now as you can see travis is displayed nicely with a name. The Jenkins setup is however shown as 'default'. I'd like to change this to something else, however I can not find anything anywhere (github, jenkins, plugin settings) on how/where to change this. How do I change this?

like image 901
Paul Avatar asked May 20 '15 14:05

Paul


People also ask

How do you trigger a job in Jenkins when a pull request is created?

For Jenkins to receive PR events through the pull request plugin, you need to add the Jenkins pull request builder payload URL in the Github repository settings. If you need just the PR triggers, you can select the “Let me select individual events” option and select just the “Pull requests” option.

What is PR in Jenkins?

Every time a developer updates the PR, a new PR build is triggered and Jenkins tries to do a new merge. Once the PR is validated, if the developer click on the Merge button, it'll try to merge the code on the target branch. You can set some merge options in this properties file.


2 Answers

You can change this in the job.

Your Job > Configure > Build Triggers > Trigger Setup > Commit Status Context

Enter something in this field to override "default".

like image 164
dayyan Avatar answered Oct 10 '22 19:10

dayyan


In the GHPRB ver 1.33.0, the option for changing the name of the check for GitHub PR is within the job configuration: Your Job > Configure > Build Environment > Set GitHub commit status with custom context and message (Must configure upstream job using GHPRB trigger) > Commit Status Context

like image 26
bocekm Avatar answered Oct 10 '22 21:10

bocekm