mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Update Jenkinsfile
This commit is contained in:
parent
6cf1abc20c
commit
0c555ee0f1
1 changed files with 19 additions and 11 deletions
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
|
@ -47,11 +47,15 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage("Tag DEV") {
|
||||
echo "Tag image to DEV"
|
||||
openshift.withCluster() {
|
||||
openshift.withProject('cicd') {
|
||||
openshift.tag("${appName}:latest", "${appName}:dev")
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
echo "Tag image to DEV"
|
||||
openshift.withCluster() {
|
||||
openshift.withProject('cicd') {
|
||||
openshift.tag("${appName}:latest", "${appName}:dev")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy DEV') {
|
||||
|
@ -69,12 +73,16 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage("Tag UAT") {
|
||||
echo "Tag image to UAT"
|
||||
openshift.withCluster() {
|
||||
openshift.withProject('cicd') {
|
||||
openshift.tag("${appName}:dev", "${appName}:uat")
|
||||
}
|
||||
stage("Tag TEST") {
|
||||
steps {
|
||||
script {
|
||||
echo "Tag image to TEST"
|
||||
openshift.withCluster() {
|
||||
openshift.withProject('cicd') {
|
||||
openshift.tag("${appName}:dev", "${appName}:test")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy UAT') {
|
||||
|
|
Loading…
Reference in a new issue