From 17db67cdf39b13a6af4923905f3c207bbb1c8c33 Mon Sep 17 00:00:00 2001 From: zhangdd <86431843@qq.com> Date: Wed, 7 Apr 2021 14:13:13 +0800 Subject: [PATCH] set currentVersion Signed-off-by: zhangdd <86431843@qq.com> --- Jenkinsfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index aa35055..5bd4f56 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 '-----------------------------' -- GitLab