Skip to content

Commit

Permalink
#2017 - Authenticate against release repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed Jul 14, 2023
1 parent 627e054 commit 7c2eaad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ pipeline {

steps {
script {
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute -s settings.xml ' +
'-Dartifactory.server=https://repo.spring.io ' +
"-Dartifactory.username=${ARTIFACTORY_USR} " +
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
Expand Down
5 changes: 5 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@
<username>${env.SONATYPE_USR}</username>
<password>${env.SONATYPE_PSW}</password>
</server>
<server>
<id>spring-release</id>
<username>${env.ARTIFACTORY_USR}</username>
<password>${env.ARTIFACTORY_PSW}</password>
</server>
</servers>
</settings>

0 comments on commit 7c2eaad

Please sign in to comment.