@@ -83,7 +83,7 @@ pipeline {
8383 steps {
8484 script {
8585 docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-redis-6.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
86- sh ' PROFILE=none LONG_TESTS=true ci/test.sh'
86+ sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME= ${ p['jenkins.user.name'] } ci/test.sh"
8787 }
8888 }
8989 }
@@ -111,7 +111,7 @@ pipeline {
111111 steps {
112112 script {
113113 docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-redis-6.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
114- sh ' PROFILE=runtimehints LONG_TESTS=false ci/test.sh'
114+ sh " PROFILE=runtimehints LONG_TESTS=false JENKINS_USER_NAME= ${ p['jenkins.user.name'] } ci/test.sh"
115115 }
116116 }
117117 }
@@ -129,7 +129,7 @@ pipeline {
129129 steps {
130130 script {
131131 docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-redis-6.2:${ p['java.next.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
132- sh ' PROFILE=none LONG_TESTS=true ci/test.sh'
132+ sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME= ${ p['jenkins.user.name'] } ci/test.sh"
133133 }
134134 }
135135 }
@@ -159,18 +159,18 @@ pipeline {
159159 steps {
160160 script {
161161 docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic' ]) {
162- sh ' MAVEN_OPTS="-Duser.name=spring-builds+ jenkins -Duser.home=/tmp/jenkins-home" ' +
163- ' DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} ' +
164- ' DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW} ' +
165- ' GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY} ' +
166- ' ./mvnw -s settings.xml -Pci,artifactory ' +
167- ' -Dartifactory.server=https://repo.spring.io ' +
162+ sh ' MAVEN_OPTS="-Duser.name=' + " ${ p[' jenkins.user.name'] } " + ' -Duser.home=/tmp/jenkins-home" ' +
163+ " DEVELOCITY_CACHE_USERNAME=${ DEVELOCITY_CACHE_USR} " +
164+ " DEVELOCITY_CACHE_PASSWORD=${ DEVELOCITY_CACHE_PSW} " +
165+ " GRADLE_ENTERPRISE_ACCESS_KEY=${ DEVELOCITY_ACCESS_KEY} " +
166+ " ./mvnw -s settings.xml -Pci,artifactory " +
167+ " -Dartifactory.server=${ p['artifactory.url'] } " +
168168 " -Dartifactory.username=${ ARTIFACTORY_USR} " +
169169 " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
170- " -Dartifactory.staging-repository=libs- snapshot-local " +
170+ " -Dartifactory.staging-repository=${ p['artifactory.repository. snapshot'] } " +
171171 " -Dartifactory.build-name=spring-data-redis " +
172172 " -Dartifactory.build-number=${ BUILD_NUMBER} " +
173- ' -Dmaven.test.skip=true clean deploy -U -B'
173+ " -Dmaven.test.skip=true clean deploy -U -B"
174174 }
175175 }
176176 }
0 commit comments