From b22394b0ba92a37a622b5f5e712c8ce6017c40e9 Mon Sep 17 00:00:00 2001 From: Jesse Houldsworth Date: Tue, 25 Mar 2025 16:55:05 -0700 Subject: [PATCH] jenmkinsfile --- Jenkinsfile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 700b188c3..227dff563 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,22 +11,22 @@ pipeline { JFROG_CLI_BUILD_NUMBER = "${BUILD_ID}" } -stage('Configure JFrog CLI') { - steps { - withCredentials([usernamePassword(credentialsId: 'jfrog-platform-creds', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) { - sh ''' - curl -fL https://install-cli.jfrog.io | sh - ./jf c add petclinic \ - --url=http://artifactory.artifactory.svc.cluster.local:8081/artifactory \ - --user=$ARTIFACTORY_USER \ - --password=$ARTIFACTORY_PASSWORD \ - --interactive=false - mv jf /usr/local/bin/jf || true - ''' + stages { + stage('Configure JFrog CLI') { + steps { + withCredentials([usernamePassword(credentialsId: 'jfrog-platform-creds', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) { + sh ''' + curl -fL https://install-cli.jfrog.io | sh + ./jf c add petclinic \ + --url=http://artifactory.artifactory.svc.cluster.local:8081/artifactory \ + --user=$ARTIFACTORY_USER \ + --password=$ARTIFACTORY_PASSWORD \ + --interactive=false + mv jf /usr/local/bin/jf || true + ''' + } + } } - } -} - stage('Validate Connection') { steps {