@@ -38,11 +38,11 @@ pipeline {
38
38
steps {
39
39
script {
40
40
docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic' ]) {
41
- sh ' MAVEN_OPTS="-Duser.name=spring-builds+ jenkins -Duser.home=/tmp/jenkins-home" ' +
42
- ' DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} ' +
43
- ' DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW} ' +
44
- ' GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY} ' +
45
- ' ./mvnw -s settings.xml clean dependency:list verify -Dsort -U -B '
41
+ sh ' MAVEN_OPTS="-Duser.name=' + " ${ p[' jenkins.user.name'] } " + ' -Duser.home=/tmp/jenkins-home" ' +
42
+ " DEVELOCITY_CACHE_USERNAME=${ DEVELOCITY_CACHE_USR} " +
43
+ " DEVELOCITY_CACHE_PASSWORD=${ DEVELOCITY_CACHE_PSW} " +
44
+ " GRADLE_ENTERPRISE_ACCESS_KEY=${ DEVELOCITY_ACCESS_KEY} " +
45
+ " ./mvnw -s settings.xml clean dependency:list verify -Dsort -B "
46
46
}
47
47
}
48
48
}
@@ -70,11 +70,11 @@ pipeline {
70
70
steps {
71
71
script {
72
72
docker. image(p[' docker.java.next.image' ]). inside(p[' docker.java.inside.basic' ]) {
73
- sh ' MAVEN_OPTS="-Duser.name=spring-builds+ jenkins -Duser.home=/tmp/jenkins-home" ' +
74
- ' DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} ' +
75
- ' DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW} ' +
76
- ' GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY} ' +
77
- ' ./mvnw -s settings.xml clean dependency:list verify -Dsort -U -B '
73
+ sh ' MAVEN_OPTS="-Duser.name=' + " ${ p[' jenkins.user.name'] } " + ' -Duser.home=/tmp/jenkins-home" ' +
74
+ " DEVELOCITY_CACHE_USERNAME=${ DEVELOCITY_CACHE_USR} " +
75
+ " DEVELOCITY_CACHE_PASSWORD=${ DEVELOCITY_CACHE_PSW} " +
76
+ " GRADLE_ENTERPRISE_ACCESS_KEY=${ DEVELOCITY_ACCESS_KEY} " +
77
+ " ./mvnw -s settings.xml clean dependency:list verify -Dsort -B "
78
78
}
79
79
}
80
80
}
@@ -104,18 +104,18 @@ pipeline {
104
104
steps {
105
105
script {
106
106
docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic' ]) {
107
- sh ' MAVEN_OPTS="-Duser.name=spring-builds+ jenkins -Duser.home=/tmp/jenkins-home" ' +
108
- ' DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} ' +
109
- ' DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW} ' +
110
- ' GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY} ' +
111
- ' ./mvnw -s settings.xml -Pci,artifactory ' +
112
- ' -Dartifactory.server=https://repo.spring.io ' +
107
+ sh ' MAVEN_OPTS="-Duser.name=' + " ${ p[' jenkins.user.name'] } " + ' -Duser.home=/tmp/jenkins-home" ' +
108
+ " DEVELOCITY_CACHE_USERNAME=${ DEVELOCITY_CACHE_USR} " +
109
+ " DEVELOCITY_CACHE_PASSWORD=${ DEVELOCITY_CACHE_PSW} " +
110
+ " GRADLE_ENTERPRISE_ACCESS_KEY=${ DEVELOCITY_ACCESS_KEY} " +
111
+ " ./mvnw -s settings.xml -Pci,artifactory " +
112
+ " -Dartifactory.server=${ p['artifactory.url'] } " +
113
113
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
114
114
" -Dartifactory.password=${ ARTIFACTORY_PSW} " +
115
- " -Dartifactory.staging-repository=libs- snapshot-local " +
115
+ " -Dartifactory.staging-repository=${ p['artifactory.repository. snapshot'] } " +
116
116
" -Dartifactory.build-name=spring-data-commons " +
117
117
" -Dartifactory.build-number=${ BUILD_NUMBER} " +
118
- ' -Dmaven.test.skip=true clean deploy -U -B'
118
+ " -Dmaven.test.skip=true clean deploy -U -B"
119
119
}
120
120
}
121
121
}
0 commit comments