Commit 555f487f authored by zhangdd's avatar zhangdd

set currentVersion

Signed-off-by: default avatarzhangdd <86431843@qq.com>
parent bb848df2
......@@ -13,7 +13,7 @@ pipeline {
"""
currentVersion="""${sh(returnStatus: true,
script:readMavenPom().getVersion().replaceAll("(-SNAPSHOT|-RELEASE)", ""))}
script: 'readMavenPom().getVersion().replaceAll("(-SNAPSHOT|-RELEASE)", "")')}
"""
}
......@@ -30,7 +30,9 @@ pipeline {
}
echo "${hello}"
echo "${world}"
echo '-----------------------------'
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