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 {
script: '"world"')}
"""
pomVersion=readMavenPom().getVersion().replaceAll("(-SNAPSHOT|-RELEASE)", "")
echo "${version}_${env.BUILD_ID}"
echo "${TAG_SELECTOR}_${env.BUILD_ID}"
version="${pomVersion}_${env.BUILD_ID}"
echo "${version}"
}
......@@ -33,6 +30,7 @@ pipeline {
echo "${hello}"
echo "${world}"
echo '-----------------------------'
echo "${version}"
echo "${currentVersion}"
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