Jenkinsfile update to cater for Multibranch deployment through Jenkins

This commit is contained in:
Dillon Ngo
2023-11-27 09:42:28 +08:00
parent 878eee78e1
commit 3829c65699
Vendored
+2 -2
View File
@@ -23,7 +23,7 @@ pipeline {
switch(GIT_BRANCH) {
case "vapor/production":
case "vapor/staging":
case "dillon/34-jenkins-vapor":
case "origin/dillon/34-jenkins-vapor":
git(
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git',
credentialsId: 'gitlab-jenkins-localhost',
@@ -60,7 +60,7 @@ pipeline {
case "vapor/staging":
sh "vendor/bin/vapor deploy staging --message='${gitCommitMessage}'"
break
case "dillon/34-jenkins-vapor":
case "origin/dillon/34-jenkins-vapor":
sh "vendor/bin/vapor deploy staging --message='${gitCommitMessage}'"
break
}