|
|
|
@ -38,6 +38,7 @@ pipeline { |
|
|
|
|
|
|
|
|
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
script { |
|
|
|
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.docker']) { |
|
|
|
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.docker']) { |
|
|
|
sh "PROFILE=ci,all-dbs JENKINS_USER_NAME=${p['jenkins.user.name']} ci/test.sh" |
|
|
|
sh "PROFILE=ci,all-dbs JENKINS_USER_NAME=${p['jenkins.user.name']} ci/test.sh" |
|
|
|
sh "JENKINS_USER_NAME=${p['jenkins.user.name']} ci/clean.sh" |
|
|
|
sh "JENKINS_USER_NAME=${p['jenkins.user.name']} ci/clean.sh" |
|
|
|
@ -45,6 +46,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage("Test other configurations") { |
|
|
|
stage("Test other configurations") { |
|
|
|
when { |
|
|
|
when { |
|
|
|
@ -66,6 +68,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
script { |
|
|
|
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
docker.image(p['docker.java.next.image']).inside(p['docker.java.inside.docker']) { |
|
|
|
docker.image(p['docker.java.next.image']).inside(p['docker.java.inside.docker']) { |
|
|
|
sh "PROFILE=ci,all-dbs JENKINS_USER_NAME=${p['jenkins.user.name']} ci/test.sh" |
|
|
|
sh "PROFILE=ci,all-dbs JENKINS_USER_NAME=${p['jenkins.user.name']} ci/test.sh" |
|
|
|
sh "JENKINS_USER_NAME=${p['jenkins.user.name']} ci/clean.sh" |
|
|
|
sh "JENKINS_USER_NAME=${p['jenkins.user.name']} ci/clean.sh" |
|
|
|
@ -75,6 +78,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage('Release to artifactory') { |
|
|
|
stage('Release to artifactory') { |
|
|
|
when { |
|
|
|
when { |
|
|
|
@ -93,6 +97,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
script { |
|
|
|
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) { |
|
|
|
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) { |
|
|
|
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' + |
|
|
|
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' + |
|
|
|
"./mvnw -s settings.xml -Pci,artifactory " + |
|
|
|
"./mvnw -s settings.xml -Pci,artifactory " + |
|
|
|
@ -108,6 +113,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
post { |
|
|
|
post { |
|
|
|
changed { |
|
|
|
changed { |
|
|
|
|