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?
JOB_BASE_NAME is a Jenkins variable which can be accessed anywhere.
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}"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With