Update Jenkinsfile
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -1,8 +1,16 @@
|
|||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
// Reference the GitLab connection name from your Jenkins Global configuration (https://JENKINS_URL/configure, GitLab section)
|
// 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 {
|
node {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
|
|||||||
Reference in New Issue
Block a user