Test triggering of new webhook for Jenkins Multibranch setup

This commit is contained in:
Dillon Ngo
2023-11-26 21:50:31 +08:00
parent d13746665f
commit a82a1f09c7
Vendored
+3 -10
View File
@@ -1,11 +1,3 @@
// Webhook + Gitlab git pull + Vapor
def payload = readJSON text: "${payload}"
String userName = payload.user_name
String userEmail = payload.user_email
String httpUrl = payload.project.http_url
pipeline {
agent {
docker {
@@ -20,9 +12,9 @@ pipeline {
stage('Download source code from Git') {
steps {
git(
url: httpUrl,
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/vapor-laravel-explore.git',
credentialsId: 'gitlab-jenkins-localhost',
branch: 'test'
branch: 'vapor/staging'
)
}
}
@@ -62,3 +54,4 @@ String getCommitMessage(){
}
return commitMessage
}