Fix scopes again.
parent
fadb0b61c0
commit
e36650d73d
|
@ -15,18 +15,15 @@ node("docker && linux && amd64") {
|
|||
}
|
||||
|
||||
stage("Build") {
|
||||
def imageVersion
|
||||
|
||||
versions.each { version ->
|
||||
ansiColor {
|
||||
def tomcatVersion = version[0]
|
||||
def jreVersion = version[1]
|
||||
def image
|
||||
|
||||
ansiColor {
|
||||
image = docker.build(
|
||||
"${dockerNamespace}/${dockerBase}:tomcat${tomcatVersion}-${jreVersion}",
|
||||
"--build-arg TOMCAT_VERSION=${tomcatVersion} --build-arg TOMCAT_JRE=${jreVersion} .")
|
||||
}
|
||||
|
||||
def guacamoleVersion
|
||||
image.inside("-w /tmp") {
|
||||
|
@ -40,6 +37,7 @@ node("docker && linux && amd64") {
|
|||
).trim()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def imageTag = "${dockerNamespace}/${dockerBase}:${guacamoleVersion}-tomcat${tomcatVersion}-${jreVersion}"
|
||||
images << [ image, imageFullName ]
|
||||
|
|
Loading…
Reference in New Issue