mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
16b9370ed3
commit
06f5ab6d81
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -42,7 +42,7 @@ try {
|
|||
stage("Tag DEV") {
|
||||
echo "Tag image to DEV"
|
||||
openshift.withCluster() {
|
||||
withCredentials([usernamePassword(credentialsId: "quay-creds-secret", usernameVariable: "QUAY_USER", passwordVariable: "QUAY_PASSWORD")]) {
|
||||
withCredentials([usernamePassword(credentialsId: "cicd-quay-creds-secret", usernameVariable: "QUAY_USER", passwordVariable: "QUAY_PASSWORD")]) {
|
||||
sh "skopeo copy docker://quay.io/${QUAY_USERNAME}/${appName}:latest docker://quay.io/${QUAY_USERNAME}/${appName}:dev --src-creds \"$QUAY_USER:$QUAY_PASSWORD\" --dest-creds \"$QUAY_USER:$QUAY_PASSWORD\" --src-tls-verify=false --dest-tls-verify=false"
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ try {
|
|||
stage("Tag for QA") {
|
||||
echo "Tag to UAT"
|
||||
openshift.withCluster() {
|
||||
withCredentials([usernamePassword(credentialsId: "quay-creds-secret", usernameVariable: "QUAY_USER", passwordVariable: "QUAY_PASSWORD")]) {
|
||||
withCredentials([usernamePassword(credentialsId: "cicd-quay-creds-secret", usernameVariable: "QUAY_USER", passwordVariable: "QUAY_PASSWORD")]) {
|
||||
sh "skopeo copy docker://quay.io/${QUAY_USERNAME}/${appName}:dev docker://quay.io/${QUAY_USERNAME}/${appName}:uat --src-creds \"$QUAY_USER:$QUAY_PASSWORD\" --dest-creds \"$QUAY_USER:$QUAY_PASSWORD\" --src-tls-verify=false --dest-tls-verify=false"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue