jenkins-job-builder/tests/triggers/fixtures/gitlab006.yaml
Norbert Grünwald 1ee893d595 Add 'secret-token' parameter to gitlab trigger
This adds support for the job specific secret token in the
gitlab build trigger.

This feature was added to the "Gitlab Plugin" with version 1.4.1
(released Sep 24, 2016).
Excerpt from the changelog:
 "Add possiblity to configure secret tokens per job to allow
  only web hooks with the correct token to trigger builds."

Change-Id: Id1ede4a6a51a231f60a39bfaefbadd8f849076e4
2018-10-29 15:06:41 +00:00

24 lines
679 B
YAML

triggers:
- gitlab:
trigger-push: false
trigger-merge-request: false
trigger-open-merge-request-push: both
trigger-note-request: false
note-regex: Retrigger
ci-skip: false
wip-skip: false
set-build-description: false
add-note-merge-request: false
add-vote-merge-request: false
accept-merge-request-on-success: true
add-ci-message: true
branch-filter-type: RegexBasedFilter
include-branches:
- include1
- include2
exclude-branches:
- exclude1
- exclude2
target-branch-regex: '(.*debug.*|.*release.*)'
secret-token: 'secret-build-token'