Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize Jenkins build name?

When I run a job in Jenkins, each build is given a name that shows in the UI in Build History that's basically the current date and time.

I'd like to be able to put in build parameters there so that I can see in the build history which branches have been built and when.

I've searched around for plugins to do this, but I haven't been able to find any. Is there one?

like image 335
slacy Avatar asked Aug 31 '12 20:08

slacy


People also ask

What is Job_base_name in Jenkins?

JOB_BASE_NAME is a Jenkins variable which can be accessed anywhere.


1 Answers

Sounds like the Build Name Setter plugin.

But if you're using Pipeline, you can do something like this:

currentBuild.description = "#${BUILD_NUMBER}, branch ${BRANCH}" 
like image 58
Christopher Orr Avatar answered Sep 20 '22 04:09

Christopher Orr