jenmkinsfile

This commit is contained in:
Jesse Houldsworth 2025-03-27 12:37:08 -07:00
parent 0eae0a510c
commit 9044ab498c

12
Jenkinsfile vendored
View file

@ -25,13 +25,13 @@ pipeline {
stage('Configure JFrog CLI') { stage('Configure JFrog CLI') {
steps { steps {
withCredentials([usernamePassword(credentialsId: "${JFROG_CREDENTIALS_ID}", usernameVariable: 'JFROG_USER', passwordVariable: 'JFROG_API_KEY')]) { withCredentials([usernamePassword(credentialsId: "${JFROG_CREDENTIALS_ID}", usernameVariable: 'JFROG_USER', passwordVariable: 'JFROG_API_KEY')]) {
sh ''' sh """
"$JF" config add jenkins-config \ ${JF} config add jenkins-config \
--artifactory-url="${JFROG_URL}" \ --artifactory-url=${JFROG_URL}/artifactory \
--user="$JFROG_USER" \ --user=${JFROG_USER} \
--apikey="$JFROG_API_KEY" \ --apikey=${JFROG_API_KEY} \
--interactive=false --interactive=false
''' """
} }
} }
} }