Commit 17db67cd authored by zhangdd's avatar zhangdd

set currentVersion

Signed-off-by: default avatarzhangdd <86431843@qq.com>
parent 9e5ddd03
...@@ -12,10 +12,7 @@ pipeline { ...@@ -12,10 +12,7 @@ pipeline {
script: '"world"')} script: '"world"')}
""" """
pomVersion=readMavenPom().getVersion().replaceAll("(-SNAPSHOT|-RELEASE)", "") pomVersion=readMavenPom().getVersion().replaceAll("(-SNAPSHOT|-RELEASE)", "")
echo "${version}_${env.BUILD_ID}"
echo "${TAG_SELECTOR}_${env.BUILD_ID}"
version="${pomVersion}_${env.BUILD_ID}" version="${pomVersion}_${env.BUILD_ID}"
echo "${version}"
} }
...@@ -33,6 +30,7 @@ pipeline { ...@@ -33,6 +30,7 @@ pipeline {
echo "${hello}" echo "${hello}"
echo "${world}" echo "${world}"
echo '-----------------------------' echo '-----------------------------'
echo "${version}"
echo "${currentVersion}" echo "${currentVersion}"
echo '-----------------------------' echo '-----------------------------'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment