詹金斯:“${env.SVN_REVISION}”变量 returns 空
Jenkins: "${env.SVN_REVISION}" variable returns null
我想在作业失败时从 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}”。此变量 returns 空值。
我无法解决这个问题。请帮忙解决这个问题
提前致谢
我想在作业失败时从 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}”。此变量 returns 空值。
我无法解决这个问题。请帮忙解决这个问题 提前致谢