Commit 9e5ddd03 authored by zhangdd's avatar zhangdd

set currentVersion

Signed-off-by: default avatarzhangdd <86431843@qq.com>
parent ff5ceb75
...@@ -11,7 +11,11 @@ pipeline { ...@@ -11,7 +11,11 @@ pipeline {
world = """${sh(returnStatus: true, world = """${sh(returnStatus: true,
script: '"world"')} script: '"world"')}
""" """
currentVersion=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}"
echo "${version}"
} }
......
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