|
|
|
@ -40,6 +40,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=all-dbs JENKINS_USER_NAME=${p['jenkins.user.name']} ci/test.sh" |
|
|
|
sh "PROFILE=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" |
|
|
|
@ -47,6 +48,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage("Test other configurations") { |
|
|
|
stage("Test other configurations") { |
|
|
|
when { |
|
|
|
when { |
|
|
|
@ -70,6 +72,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=all-dbs JENKINS_USER_NAME=${p['jenkins.user.name']} ci/test.sh" |
|
|
|
sh "PROFILE=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" |
|
|
|
@ -79,6 +82,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage('Release to artifactory') { |
|
|
|
stage('Release to artifactory') { |
|
|
|
when { |
|
|
|
when { |
|
|
|
@ -99,6 +103,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" ' + |
|
|
|
"DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} " + |
|
|
|
"DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} " + |
|
|
|
@ -117,6 +122,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
post { |
|
|
|
post { |
|
|
|
changed { |
|
|
|
changed { |
|
|
|
|