mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
jenmkinsfile
This commit is contained in:
parent
e0a5d2a2c5
commit
21b66a8715
1 changed files with 15 additions and 13 deletions
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
|
@ -11,20 +11,22 @@ pipeline {
|
|||
JFROG_CLI_BUILD_NUMBER = "${BUILD_ID}"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Configure JFrog CLI') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'jfrog-platform-creds', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) {
|
||||
sh """
|
||||
jf c add petclinic \
|
||||
--url=http://artifactory.artifactory.svc.cluster.local:8081/artifactory \
|
||||
--user=\$ARTIFACTORY_USER \
|
||||
--password=\$ARTIFACTORY_PASSWORD \
|
||||
--interactive=false
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('Configure JFrog CLI') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'jfrog-platform-creds', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASSWORD')]) {
|
||||
sh '''
|
||||
curl -fL https://install-cli.jfrog.io | sh
|
||||
./jf c add petclinic \
|
||||
--url=http://artifactory.artifactory.svc.cluster.local:8081/artifactory \
|
||||
--user=$ARTIFACTORY_USER \
|
||||
--password=$ARTIFACTORY_PASSWORD \
|
||||
--interactive=false
|
||||
mv jf /usr/local/bin/jf || true
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Validate Connection') {
|
||||
steps {
|
||||
|
|
Loading…
Reference in a new issue