mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/vapor-laravel-explore.git
synced 2026-08-19 04:24:03 +00:00
Test triggering of new webhook for Jenkins Multibranch setup
This commit is contained in:
Vendored
+17
-15
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user