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