From ddce6d49ac3d0b686c40cece84ba52530eb3cff0 Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Sun, 21 Mar 2021 09:45:31 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d76423b..279ce71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,16 @@ #!/usr/bin/env groovy // Reference the GitLab connection name from your Jenkins Global configuration (https://JENKINS_URL/configure, GitLab section) -properties([gitLabConnection('test-gitlab-hook')]) +properties([ + gitLabConnection('test-gitlab-hook'), + pipelineTriggers([ + [ + $class : 'GitLabPushTrigger', + triggerOnPush : true + ] + ]) +]) node { stage('Checkout') {