jenmkinsfile

This commit is contained in:
Jesse Houldsworth 2025-03-26 10:07:43 -07:00
parent 97bd3ea4c6
commit 73d309a30a

4
Jenkinsfile vendored
View file

@ -8,7 +8,7 @@ pipeline {
environment { environment {
JFROG_CLI_BUILD_NAME = "spring-petclinic" JFROG_CLI_BUILD_NAME = "spring-petclinic"
JFROG_CLI_BUILD_NUMBER = "${BUILD_ID}" JFROG_CLI_BUILD_NUMBER = "${BUILD_ID}"
ARTIFACTORY_URL = "http://artifactory.artifactory.svc.cluster.local:8081" ARTIFACTORY_URL = "https://trialt0zppb.jfrog.io/"
JF = "${WORKSPACE}/jf" JF = "${WORKSPACE}/jf"
} }
@ -25,7 +25,7 @@ pipeline {
stage('Configure JFrog CLI') { stage('Configure JFrog CLI') {
steps { steps {
withCredentials([usernamePassword(credentialsId: 'jfrog-platform-creds', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'jfrog-saas', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) {
sh ''' sh '''
"$JF" c add petclinic \ "$JF" c add petclinic \
--url="${ARTIFACTORY_URL}" \ --url="${ARTIFACTORY_URL}" \