File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -99,15 +99,17 @@ pipeline {
99
99
steps {
100
100
script {
101
101
docker. withRegistry(p[' docker.proxy.registry' ], p[' docker.proxy.credentials' ]) {
102
- docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic ' ]) {
102
+ docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.docker ' ]) {
103
103
sh ' MAVEN_OPTS="-Duser.name=' + " ${ p['jenkins.user.name']} " + ' -Duser.home=/tmp/jenkins-home" ' +
104
- " ./mvnw -s settings.xml -Pci,artifactory -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-elasticsearch-non-root " +
104
+ " ./mvnw -s settings.xml -Pci,artifactory " +
105
+ " -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root " +
105
106
" -Dartifactory.server=${ p['artifactory.url']} " +
106
107
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
107
108
" -Dartifactory.password=${ ARTIFACTORY_PSW} " +
108
109
" -Dartifactory.staging-repository=${ p['artifactory.repository.snapshot']} " +
109
110
" -Dartifactory.build-name=spring-data-elasticsearch " +
110
111
" -Dartifactory.build-number=spring-data-elasticsearch-${ BRANCH_NAME} -build-${ BUILD_NUMBER} " +
112
+ " -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-elasticsearch " +
111
113
" -Dmaven.test.skip=true clean deploy -U -B"
112
114
}
113
115
}
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ set -euo pipefail
5
5
export JENKINS_USER=${JENKINS_USER_NAME}
6
6
7
7
MAVEN_OPTS=" -Duser.name=${JENKINS_USER} -Duser.home=/tmp/jenkins-home" \
8
- ./mvnw -s settings.xml clean -Dscan=false -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-elasticsearch
8
+ ./mvnw -s settings.xml clean -Dscan=false -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-elasticsearch -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root
Original file line number Diff line number Diff line change 3
3
set -euo pipefail
4
4
5
5
mkdir -p /tmp/jenkins-home/.m2/spring-data-elasticsearch
6
- chown -R 1001:1001 .
7
6
export JENKINS_USER=${JENKINS_USER_NAME}
8
7
9
8
MAVEN_OPTS=" -Duser.name=${JENKINS_USER} -Duser.home=/tmp/jenkins-home" \
10
9
./mvnw -s settings.xml \
11
- -P${PROFILE} clean dependency:list verify -Dsort -U -B -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-elasticsearch
10
+ -P${PROFILE} clean dependency:list verify -Dsort -U -B -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-elasticsearch -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root
You can’t perform that action at this time.
0 commit comments