From 3071360e5b98eb2777f279b4620feac78bbba78b Mon Sep 17 00:00:00 2001 From: "Greg L. Turnquist" Date: Wed, 14 Apr 2021 14:24:17 -0500 Subject: [PATCH] Authenticate with artifactory to fetch artifacts. --- Jenkinsfile | 18 ++++++++++++++++++ settings.xml | 15 +++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4a2cb4d..cd67c64 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,6 +17,9 @@ pipeline { args '-v $HOME/.m2:/tmp/jenkins-home/.m2' } } + environment { + ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') + } steps { sh "PROFILE=convergence ci/test.sh" } @@ -30,6 +33,9 @@ pipeline { args '-v $HOME/.m2:/tmp/jenkins-home/.m2' } } + environment { + ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') + } steps { sh "PROFILE=spring-next,convergence ci/test.sh" } @@ -41,6 +47,9 @@ pipeline { args '-v $HOME/.m2:/tmp/jenkins-home/.m2' } } + environment { + ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') + } steps { sh "PROFILE=convergence ci/test.sh" } @@ -52,6 +61,9 @@ pipeline { args '-v $HOME/.m2:/tmp/jenkins-home/.m2' } } + environment { + ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') + } steps { sh "PROFILE=spring-next,convergence ci/test.sh" } @@ -63,6 +75,9 @@ pipeline { args '-v $HOME/.m2:/tmp/jenkins-home/.m2' } } + environment { + ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') + } steps { sh "PROFILE=convergence ci/test.sh" } @@ -74,6 +89,9 @@ pipeline { args '-v $HOME/.m2:/tmp/jenkins-home/.m2' } } + environment { + ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') + } steps { sh "PROFILE=spring-next,convergence ci/test.sh" } diff --git a/settings.xml b/settings.xml index 7368837..5e05b27 100644 --- a/settings.xml +++ b/settings.xml @@ -9,6 +9,21 @@ ${env.USERNAME} ${env.PASSWORD} + + spring-plugins-release + ${env.ARTIFACTORY_USR} + ${env.ARTIFACTORY_PSW} + + + spring-libs-snapshot + ${env.ARTIFACTORY_USR} + ${env.ARTIFACTORY_PSW} + + + spring-libs-milestone + ${env.ARTIFACTORY_USR} + ${env.ARTIFACTORY_PSW} + \ No newline at end of file