@@ -31,11 +31,11 @@ pipeline {
3131 steps {
3232 script {
3333 docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic' ]) {
34- sh ' MAVEN_OPTS="-Duser.name=spring-builds+ jenkins -Duser.home=/tmp/jenkins-home" ' +
35- ' DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} ' +
36- ' DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW} ' +
37- ' GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY} ' +
38- ' ./mvnw -s settings.xml clean dependency:list verify -Dsort -B'
34+ sh ' MAVEN_OPTS="-Duser.name=' + " ${ p[' jenkins.user.name'] } " + ' -Duser.home=/tmp/jenkins-home" ' +
35+ " DEVELOCITY_CACHE_USERNAME=${ DEVELOCITY_CACHE_USR} " +
36+ " DEVELOCITY_CACHE_PASSWORD=${ DEVELOCITY_CACHE_PSW} " +
37+ " GRADLE_ENTERPRISE_ACCESS_KEY=${ DEVELOCITY_ACCESS_KEY} " +
38+ " ./mvnw -s settings.xml clean dependency:list verify -Dsort -B"
3939 }
4040 }
4141 }
@@ -63,11 +63,11 @@ pipeline {
6363 steps {
6464 script {
6565 docker. image(p[' docker.java.next.image' ]). inside(p[' docker.java.inside.basic' ]) {
66- sh ' MAVEN_OPTS="-Duser.name=spring-builds+ jenkins -Duser.home=/tmp/jenkins-home" ' +
67- ' DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} ' +
68- ' DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW} ' +
69- ' GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY} ' +
70- ' ./mvnw -s settings.xml clean dependency:list verify -Dsort -B'
66+ sh ' MAVEN_OPTS="-Duser.name=' + " ${ p[' jenkins.user.name'] } " + ' -Duser.home=/tmp/jenkins-home" ' +
67+ " DEVELOCITY_CACHE_USERNAME=${ DEVELOCITY_CACHE_USR} " +
68+ " DEVELOCITY_CACHE_PASSWORD=${ DEVELOCITY_CACHE_PSW} " +
69+ " GRADLE_ENTERPRISE_ACCESS_KEY=${ DEVELOCITY_ACCESS_KEY} " +
70+ " ./mvnw -s settings.xml clean dependency:list verify -Dsort -B"
7171 }
7272 }
7373 }
@@ -90,18 +90,18 @@ pipeline {
9090 steps {
9191 script {
9292 docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic' ]) {
93- sh ' MAVEN_OPTS="-Duser.name=spring-builds+ jenkins -Duser.home=/tmp/jenkins-home" ' +
94- ' DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} ' +
95- ' DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW} ' +
96- ' GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY} ' +
97- ' ./mvnw -s settings.xml -Pci,artifactory ' +
98- ' -Dartifactory.server=https://repo.spring.io ' +
93+ sh ' MAVEN_OPTS="-Duser.name=' + " ${ p[' jenkins.user.name'] } " + ' -Duser.home=/tmp/jenkins-home" ' +
94+ " DEVELOCITY_CACHE_USERNAME=${ DEVELOCITY_CACHE_USR} " +
95+ " DEVELOCITY_CACHE_PASSWORD=${ DEVELOCITY_CACHE_PSW} " +
96+ " GRADLE_ENTERPRISE_ACCESS_KEY=${ DEVELOCITY_ACCESS_KEY} " +
97+ " ./mvnw -s settings.xml -Pci,artifactory " +
98+ " -Dartifactory.server=${ p['artifactory.url'] } " +
9999 " -Dartifactory.username=${ ARTIFACTORY_USR} " +
100100 " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
101- " -Dartifactory.staging-repository=libs- snapshot-local " +
101+ " -Dartifactory.staging-repository=${ p['artifactory.repository. snapshot'] } " +
102102 " -Dartifactory.build-name=spring-data-build " +
103103 " -Dartifactory.build-number=${ BUILD_NUMBER} " +
104- ' -Dmaven.test.skip=true clean deploy -B -U'
104+ " -Dmaven.test.skip=true clean deploy -B -U"
105105 }
106106 }
107107 }
0 commit comments