Hello,

I'm using build-name-setter plugin with the following settings for Build 
name macro template

v${BUILD_LOG_REGEX, regex="(.*)Current build number: 
([0-9]\.[0-9]\.[0-9]+)(.*)", maxMatches=1, showTruncatedLines=false, 
substText="$2", addNewline=false}.b${BUILD_NUMBER}_${GIT_REVISION, length=8}

12:54:17 Evaluated macro: 'v1.2.06.b14_4fd204ef'
12:54:17 Setting build name to 'v1.2.06.b14_4fd204ef'

All works fine and my job name is set to v1.2.06.b14_4fd204ef. But I need 
to get access to this value in a shell script (maybe via variable). Is it 
possible? if it's not - maybe some workaround?

I have tried

echo "BUILD_NUMBER - ${BUILD_NUMBER}"
echo "BUILD_ID - ${BUILD_ID}"
echo "BUILD_DISPLAY_NAME - ${BUILD_DISPLAY_NAME}"
echo "JOB_NAME - ${JOB_NAME}"
echo "BUILD_TAG - ${BUILD_TAG}"

but non of them fit my requirements

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/da3229d9-ac1e-4926-95df-f04dbb90e575%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to