mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
jenmkinsfile
This commit is contained in:
parent
fa42c8b1e4
commit
a1fa74c029
1 changed files with 7 additions and 2 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue