mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-26 04:12:47 +00:00
jenmkinsfile
This commit is contained in:
parent
b22394b0ba
commit
b73b4978de
1 changed files with 8 additions and 8 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -17,12 +17,12 @@ pipeline {
|
||||||
withCredentials([usernamePassword(credentialsId: 'jfrog-platform-creds', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) {
|
withCredentials([usernamePassword(credentialsId: 'jfrog-platform-creds', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) {
|
||||||
sh '''
|
sh '''
|
||||||
curl -fL https://install-cli.jfrog.io | sh
|
curl -fL https://install-cli.jfrog.io | sh
|
||||||
|
chmod +x jf
|
||||||
./jf c add petclinic \
|
./jf c add petclinic \
|
||||||
--url=http://artifactory.artifactory.svc.cluster.local:8081/artifactory \
|
--url=http://artifactory.artifactory.svc.cluster.local:8081/artifactory \
|
||||||
--user=$ARTIFACTORY_USER \
|
--user=$ARTIFACTORY_USER \
|
||||||
--password=$ARTIFACTORY_PASSWORD \
|
--password=$ARTIFACTORY_PASSWORD \
|
||||||
--interactive=false
|
--interactive=false
|
||||||
mv jf /usr/local/bin/jf || true
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,8 @@ pipeline {
|
||||||
|
|
||||||
stage('Validate Connection') {
|
stage('Validate Connection') {
|
||||||
steps {
|
steps {
|
||||||
sh 'jf c use petclinic'
|
sh './jf c use petclinic'
|
||||||
sh 'jf rt ping'
|
sh './jf rt ping'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,21 +39,21 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sh 'chmod +x mvnw'
|
sh 'chmod +x mvnw'
|
||||||
sh '''
|
sh '''
|
||||||
jf mvnc --global \
|
./jf mvnc --global \
|
||||||
--repo-resolve-releases=petclinic-maven-dev-virtual \
|
--repo-resolve-releases=petclinic-maven-dev-virtual \
|
||||||
--repo-resolve-snapshots=petclinic-maven-dev-virtual \
|
--repo-resolve-snapshots=petclinic-maven-dev-virtual \
|
||||||
--repo-deploy-releases=petclinic-maven-dev-local \
|
--repo-deploy-releases=petclinic-maven-dev-local \
|
||||||
--repo-deploy-snapshots=petclinic-maven-dev-local
|
--repo-deploy-snapshots=petclinic-maven-dev-local
|
||||||
'''
|
'''
|
||||||
sh 'jf mvn clean deploy -DskipTests -Dcheckstyle.skip=true'
|
sh './jf mvn clean deploy -DskipTests -Dcheckstyle.skip=true'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Publish Build Info') {
|
stage('Publish Build Info') {
|
||||||
steps {
|
steps {
|
||||||
sh 'jf rt build-collect-env'
|
sh './jf rt build-collect-env'
|
||||||
sh 'jf rt build-add-git'
|
sh './jf rt build-add-git'
|
||||||
sh 'jf rt build-publish'
|
sh './jf rt build-publish'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue