From a1fa74c029b6bf059bc7a34bd35a0c4f784a2e5b Mon Sep 17 00:00:00 2001 From: Jesse Houldsworth Date: Tue, 25 Mar 2025 17:05:02 -0700 Subject: [PATCH] jenmkinsfile --- Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a6f2b1072..586d69f87 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,7 @@ pipeline { agent any tools { + // This is your Jenkins-managed Maven tool maven 'maven-3' } @@ -12,11 +13,12 @@ pipeline { } stages { + stage('Download JFrog CLI') { steps { - // Download a specific ARM64 version of the jf binary + // Download a *confirmed* ARM64 version – 2.44.0 sh ''' - curl -fL https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/2.42.2/jfrog-cli-linux-arm64/jf -o jf + curl -fL https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/2.44.0/jfrog-cli-linux-arm64/jf -o jf chmod +x jf ''' } @@ -38,6 +40,7 @@ pipeline { stage('Validate Connection') { steps { + // Switch to "petclinic" config & ping Artifactory sh './jf c use petclinic' sh './jf rt ping' } @@ -46,6 +49,7 @@ pipeline { stage('Build Maven') { steps { sh 'chmod +x mvnw' + // Configure Maven resolution + deployment in Artifactory sh ''' ./jf mvnc --global \ --repo-resolve-releases=petclinic-maven-dev-virtual \ @@ -53,6 +57,7 @@ pipeline { --repo-deploy-releases=petclinic-maven-dev-local \ --repo-deploy-snapshots=petclinic-maven-dev-local ''' + // Perform the actual build + deploy sh './jf mvn clean deploy -DskipTests -Dcheckstyle.skip=true' } }