From 5aad114bf7fc3fc37e6d4ceb718979fbaf6a0642 Mon Sep 17 00:00:00 2001 From: "Greg L. Turnquist" Date: Fri, 29 Jan 2021 16:45:58 -0600 Subject: [PATCH] Authenticate with artifactory for testing. To support integration testing with Apache Solr, the CI system must authenticate with artifactory to pull down an artifact not found anywhere else. Closes #1968 --- Jenkinsfile | 7 ++++++- settings.xml | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 settings.xml diff --git a/Jenkinsfile b/Jenkinsfile index 0d0d43658..90f862133 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,6 +30,11 @@ pipeline { } } options { timeout(time: 30, unit: 'MINUTES') } + + environment { + ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') + } + steps { sh 'rm -rf ?' sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log' @@ -37,7 +42,7 @@ pipeline { sh 'sleep 10' sh 'mongo --eval "rs.initiate({_id: \'rs0\', members:[{_id: 0, host: \'127.0.0.1:27017\'}]});"' sh 'sleep 15' - sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean dependency:list test -Dsort -U -B -Pit' + sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean dependency:list test -Dsort -U -B -Pit -s settings.xml' } } } diff --git a/settings.xml b/settings.xml new file mode 100644 index 000000000..30569f3f3 --- /dev/null +++ b/settings.xml @@ -0,0 +1,12 @@ + + + + + spring-libs-snapshot + ${env.ARTIFACTORY_USR} + ${env.ARTIFACTORY_PSW} + + +