From fa42c8b1e43d09ad0263edc8942b8943976aa338 Mon Sep 17 00:00:00 2001 From: Jesse Houldsworth Date: Tue, 25 Mar 2025 17:02:13 -0700 Subject: [PATCH] jenmkinsfile --- Jenkinsfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c97a93d4..a6f2b1072 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,24 +2,21 @@ pipeline { agent any tools { - // You can still let Jenkins manage Maven, if you want maven 'maven-3' } environment { JFROG_CLI_BUILD_NAME = "spring-petclinic" JFROG_CLI_BUILD_NUMBER = "${BUILD_ID}" - // Adjust URL if needed (HTTP vs. HTTPS) ARTIFACTORY_URL = "http://artifactory.artifactory.svc.cluster.local:8081/artifactory" } stages { - stage('Download JFrog CLI') { steps { - // Download the CLI to "jf" + // Download a specific ARM64 version of the jf binary sh ''' - curl -fL https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/latest/jfrog-cli-linux-arm64/jf -o jf + curl -fL https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/2.42.2/jfrog-cli-linux-arm64/jf -o jf chmod +x jf ''' } @@ -28,7 +25,6 @@ pipeline { stage('Configure JFrog CLI') { steps { withCredentials([usernamePassword(credentialsId: 'jfrog-platform-creds', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) { - // Add the config called "petclinic" sh ''' ./jf c add petclinic \ --url=${ARTIFACTORY_URL} \ @@ -50,7 +46,6 @@ pipeline { stage('Build Maven') { steps { sh 'chmod +x mvnw' - // Configure Maven's Artifactory resolver/deployer sh ''' ./jf mvnc --global \ --repo-resolve-releases=petclinic-maven-dev-virtual \ @@ -58,7 +53,6 @@ pipeline { --repo-deploy-releases=petclinic-maven-dev-local \ --repo-deploy-snapshots=petclinic-maven-dev-local ''' - // Run the actual build & deploy sh './jf mvn clean deploy -DskipTests -Dcheckstyle.skip=true' } }