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