Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit cf2a6b7

Browse files
committed
Use settings.xml for credentials.
1 parent 4f630a1 commit cf2a6b7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ pipeline {
181181

182182
steps {
183183
script {
184-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pdocs ' +
184+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pdocs ' +
185185
'-Dartifactory.server=https://repo.spring.io ' +
186186
"-Dartifactory.username=${ARTIFACTORY_USR} " +
187187
"-Dartifactory.password=${ARTIFACTORY_PSW} " +

ci/build-and-deploy-to-artifactory.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ set -euo pipefail
88
echo 'Deploying to Artifactory...'
99

1010
MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" \
11-
./mvnw -P${PROFILE} -Dmaven.test.skip=true clean deploy -B
11+
./mvnw -s settings.xml -P${PROFILE} -Dmaven.test.skip=true clean deploy -B

ci/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set -euo pipefail
44

55
MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" \
6-
./mvnw -P${PROFILE} clean dependency:list test -Dsort -U -B
6+
./mvnw -s settings.xml -P${PROFILE} clean dependency:list test -Dsort -U -B

0 commit comments

Comments
 (0)