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') {