Fix each calls, replace invalid "forEach".

master
Icedream 2018-05-07 20:24:47 +02:00
parent 9235f443cf
commit 820f9407b7
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 2 additions and 6 deletions

8
Jenkinsfile vendored
View File

@ -10,10 +10,6 @@ node("docker && linux && amd64") {
["8.5", "jre8"],
["9", "jre8"],
]
def jreVersions = [
"jre7",
"jre8",
]
stage("Checkout") {
checkout scm
@ -22,7 +18,7 @@ node("docker && linux && amd64") {
stage("Build") {
def imageVersion
versions.forEach { version ->
versions.each { version ->
def tomcatVersion = version[0]
def jreVersion = version[1]
@ -45,7 +41,7 @@ node("docker && linux && amd64") {
}
stage("Push") {
images.forEach { imageData ->
images.each { imageData ->
def image = imageData[0]
def imageTag = imageData[1]
image.push(imageTag)