From 7c2eaad49c984dd615f9b58f41f7b5e9f19bae9f Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Fri, 14 Jul 2023 09:35:17 +0200 Subject: [PATCH] #2017 - Authenticate against release repository. --- Jenkinsfile | 2 +- settings.xml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 11561a91d..ceaf701c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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} " + diff --git a/settings.xml b/settings.xml index 130091665..62c7a1d90 100644 --- a/settings.xml +++ b/settings.xml @@ -8,5 +8,10 @@ ${env.SONATYPE_USR} ${env.SONATYPE_PSW} + + spring-release + ${env.ARTIFACTORY_USR} + ${env.ARTIFACTORY_PSW} + \ No newline at end of file