Clean up directory where version meta is unpacked to before using.
parent
e36650d73d
commit
7a860b21c2
|
@ -26,15 +26,18 @@ node("docker && linux && amd64") {
|
|||
"--build-arg TOMCAT_VERSION=${tomcatVersion} --build-arg TOMCAT_JRE=${jreVersion} .")
|
||||
|
||||
def guacamoleVersion
|
||||
image.inside("-w /tmp") {
|
||||
image.inside() {
|
||||
ansiColor {
|
||||
sh """
|
||||
unzip /opt/guacamole/guacamole.war META-INF/maven/org.apache.guacamole/guacamole/pom.properties
|
||||
"""
|
||||
guacamoleVersion = sh(
|
||||
script: "grep -Po '(?i)^version=\\K.+\\s*\$' META-INF/maven/org.apache.guacamole/guacamole/pom.properties",
|
||||
returnStdout: true,
|
||||
).trim()
|
||||
dir("tmp") {
|
||||
deleteDir()
|
||||
sh """
|
||||
unzip /opt/guacamole/guacamole.war META-INF/maven/org.apache.guacamole/guacamole/pom.properties
|
||||
"""
|
||||
guacamoleVersion = sh(
|
||||
script: "grep -Po '(?i)^version=\\K.+\\s*\$' META-INF/maven/org.apache.guacamole/guacamole/pom.properties",
|
||||
returnStdout: true,
|
||||
).trim()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue