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
6cf1abc20c
commit
0c555ee0f1
1 changed files with 19 additions and 11 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -47,6 +47,8 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage("Tag DEV") {
|
||||
steps {
|
||||
script {
|
||||
echo "Tag image to DEV"
|
||||
openshift.withCluster() {
|
||||
openshift.withProject('cicd') {
|
||||
|
@ -54,6 +56,8 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy DEV') {
|
||||
steps {
|
||||
script {
|
||||
|
@ -69,11 +73,15 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage("Tag UAT") {
|
||||
echo "Tag image to UAT"
|
||||
stage("Tag TEST") {
|
||||
steps {
|
||||
script {
|
||||
echo "Tag image to TEST"
|
||||
openshift.withCluster() {
|
||||
openshift.withProject('cicd') {
|
||||
openshift.tag("${appName}:dev", "${appName}:uat")
|
||||
openshift.tag("${appName}:dev", "${appName}:test")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue