Test triggering of new webhook for Jenkins Multibranch setup

This commit is contained in:
Dillon Ngo
2023-11-26 21:32:39 +08:00
parent 0bf7d6cb95
commit 4d4c02ef1d
Vendored
+5 -5
View File
@@ -1,9 +1,9 @@
// 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
// def payload = readJSON text: "${payload}"
// String userName = payload.user_name
// String userEmail = payload.user_email
// String httpUrl = payload.project.http_url
pipeline {
@@ -20,7 +20,7 @@ pipeline {
stage('Download source code from Git') {
steps {
git(
url: httpUrl,
url: payload.project.http_url,
credentialsId: 'gitlab-jenkins-localhost',
branch: 'vapor/production'
)