当工作失败时,我想读一下Jenkins工作的修订号。
修订编号:

作业脚本:
failure {
echo 'JENKINS PIPELINE FAILED'
notifyBitbucket
commitSha1: "${env.SVN_REVISION}",
considerUnstableAsSuccess: false,
credentialsId: 'UFCBitbucket',
disableInprogressNotification: true,
ignoreUnverifiedSSLPeer: true,
includeBuildNumberInKey: false,
prependParentProjectKey: false,
projectKey: '',
stashServerBaseUrl: 'https://bitbucket.url.local:8080'
}我对Jenkins环境变量"${env.SVN_REVISION}“有问题。此变量返回空值。
我解决不了这个问题。请提前帮助解决这个问题谢谢
https://stackoverflow.com/questions/58953753
复制相似问题