Thanks, that worked great! Does anyone know if you can add more complex logic in the job name? For example, I'd like to use conditional logic. If a given build parameter has a value of "TRUE", I'd like the build name to have "PROD" in it.
Any ideas of how that could be accomplished? Kind Regards, Bob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Eric Pyle Sent: Thursday, June 20, 2013 3:45 PM To: jenkinsci-users@googlegroups.com Subject: Re: BuildNameSetter plugin - Unrecognized macro Hi Bob, I was just encountering this problem today. Try specifying the build name as #${ENV,var="BUILD_NUMBER"} ${ENV,var="GIT_BRANCH_OR_TAG"} I found this suggestion in a Jenkins bug report JENKINS-13347<https://issues.jenkins-ci.org/browse/JENKINS-13347>. Eric On 6/20/2013 1:54 PM, Bob Bick wrote: Hi, Newbie question here... I am attempting to use the BuildNameSetter plugin to set the Jenkins build name to an input parameter. Specifically, my job has a parameter named "GIT_BRANCH_OR_TAG". I set the Build Name to: #${BUILD_NUMBER} ${GIT_BRANCH_OR_TAG} Which results in: Unrecognized macro 'GIT_BRANCH_OR_TAG' in '#${BUILD_NUMBER} ${GIT_BRANCH_OR_TAG}' I am sure I am doing something stupid; but, not sure how this could be happening. Any ideas? Thanks for taking the time to read this. Bob *** *** *** This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail and delete the message. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/groups/opt_out. *** *** *** This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail and delete the message. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.