Commit bb848df2 authored by zhangdd's avatar zhangdd

set currentVersion

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