Test triggering of new webhook for Jenkins Multibranch setup

This commit is contained in:
Dillon Ngo
2023-11-26 22:52:19 +08:00
parent 82d70ab9a3
commit 4c158f1bb6
Vendored
+17 -15
View File
@@ -11,21 +11,23 @@ pipeline {
stages {
stage('Download source code from Git') {
steps {
switch(GIT_BRANCH) {
case "vapor/production":
git(
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/vapor-laravel-explore.git',
credentialsId: 'gitlab-jenkins-localhost',
branch: 'vapor/production'
)
break
case "vapor/staging":
git(
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/vapor-laravel-explore.git',
credentialsId: 'gitlab-jenkins-localhost',
branch: 'vapor/staging'
)
break
script{
switch(GIT_BRANCH) {
case "vapor/production":
git(
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/vapor-laravel-explore.git',
credentialsId: 'gitlab-jenkins-localhost',
branch: 'vapor/production'
)
break
case "vapor/staging":
git(
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/vapor-laravel-explore.git',
credentialsId: 'gitlab-jenkins-localhost',
branch: 'vapor/staging'
)
break
}
}
}
}