Drew Gulino commented on Bug JENKINS-26520

The proposed workarounds do not take into account the loss of a variable with the value of the old BUILD_ID.

If you want to determine the file location of an archive, you need the old definition of BUILD_NUMBER (which matched BUILD_DISPLAY_NAME minus the "#") and BUILD_ID.

$JENKINS_HOME/jobs/$JOB_NAME/builds/$OLD_BUILD_NUMBER/archive/file-name-$BUILD_NUMBER.tar.gz

In a shell, I can use this instead:
export BUILD_DISPLAY_NUMBER=$(echo "${BUILD_DISPLAY_NAME}" | awk -F"#" '{print $2}')
But it isn't used by downstream builds.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to