Update Jenkinsfile

This commit is contained in:
Andrew Pitt 2020-03-17 08:29:36 -04:00 committed by GitHub
parent 6cf1abc20c
commit 0c555ee0f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
Jenkinsfile vendored
View file

@ -47,11 +47,15 @@ pipeline {
} }
} }
stage("Tag DEV") { stage("Tag DEV") {
echo "Tag image to DEV" steps {
openshift.withCluster() { script {
openshift.withProject('cicd') { echo "Tag image to DEV"
openshift.tag("${appName}:latest", "${appName}:dev") openshift.withCluster() {
} openshift.withProject('cicd') {
openshift.tag("${appName}:latest", "${appName}:dev")
}
}
}
} }
} }
stage('Deploy DEV') { stage('Deploy DEV') {
@ -69,12 +73,16 @@ pipeline {
} }
} }
} }
stage("Tag UAT") { stage("Tag TEST") {
echo "Tag image to UAT" steps {
openshift.withCluster() { script {
openshift.withProject('cicd') { echo "Tag image to TEST"
openshift.tag("${appName}:dev", "${appName}:uat") openshift.withCluster() {
} openshift.withProject('cicd') {
openshift.tag("${appName}:dev", "${appName}:test")
}
}
}
} }
} }
stage('Deploy UAT') { stage('Deploy UAT') {