Skip to content

Commit 7c2eaad

Browse files
committed
#2017 - Authenticate against release repository.
1 parent 627e054 commit 7c2eaad

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Jenkinsfile

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

215215
steps {
216216
script {
217-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
217+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute -s settings.xml ' +
218218
'-Dartifactory.server=https://repo.spring.io ' +
219219
"-Dartifactory.username=${ARTIFACTORY_USR} " +
220220
"-Dartifactory.password=${ARTIFACTORY_PSW} " +

settings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
<username>${env.SONATYPE_USR}</username>
99
<password>${env.SONATYPE_PSW}</password>
1010
</server>
11+
<server>
12+
<id>spring-release</id>
13+
<username>${env.ARTIFACTORY_USR}</username>
14+
<password>${env.ARTIFACTORY_PSW}</password>
15+
</server>
1116
</servers>
1217
</settings>

0 commit comments

Comments
 (0)