From c45eeefb89b60fee1eb229c642e03b960695198c Mon Sep 17 00:00:00 2001 From: John Blum Date: Thu, 1 Jun 2023 15:13:42 -0700 Subject: [PATCH] Define 'ARTIFACTORY' environment variable in all Jenkin CI build pipeline stages (build, deploy docs, deploy artifacts). --- Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c7eccf4c..3496341c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,9 @@ pipeline { stages { stage('Build') { + environment { + ARTIFACTORY = credentials("${p['artifactory.credentials']}") + } options { timeout(time: 30, unit: "MINUTES") } @@ -57,6 +60,9 @@ pipeline { } stage ('Deploy Docs') { + environment { + ARTIFACTORY = credentials("${p['artifactory.credentials']}") + } options { timeout(time: 15, unit: "MINUTES") } @@ -80,6 +86,9 @@ pipeline { } stage ('Deploy Artifacts') { + environment { + ARTIFACTORY = credentials("${p['artifactory.credentials']}") + } options { timeout(time: 15, unit: "MINUTES") }