Reputation: 3186
I'm trying to create custom build format in Jenkins. My build ideally would have the ${GIT_TAG}.${BUILD_NUMBER}
I've installed the buildnamesetter plugin, https://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin.
However I can't figure out how can I access the build parameters, there is a way to access the environment parameters but not the build ones.
Eventually all I get with ${GIT_TAG}.${BUILD_NUMBER} is the running number of the build such as: #24 and error in the execution log:
Unrecognized macro 'GIT_TAG' in '${GIT_TAG}.${BUILD_NUMBER}'
I might be looking in the wrong direction and different plugin can be used, any help will be appreciated.
I'm still stuck since I have a requirement to have additional parameter as in the build number string and this one is selected by the user from Choice Parameter and Choice Parameter can't be converted to be environment AFAIK. Any ideas would be very appreciated.
Upvotes: 1
Views: 1588
Reputation: 3186
Ok, finally after struggling for few hours seems that solution was found I'll post it here in case it might help to someone else:
How I used it:
How I used it:
Upvotes: 1