jenkins-job-builder/samples/gerrit-trigger.yaml
Arnaud Fabre 78d5cd15ad gerrit: Add file paths filtering support.
Gerrit Trigger allows to restrict triggering of build depending
on which files are modified in the change.

Expose this capability with a new property file-paths.

Also cleanup documentation (omissions and formatting errors).

Change-Id: I4bfc5ab03a10622fdb5730a294037add8c1ad54f
Reviewed-on: https://review.openstack.org/25569
Reviewed-by: Antoine Musso <hashar@free.fr>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-04-03 20:03:54 +00:00

29 lines
1.0 KiB
YAML

- job:
name: test-gerrit-trigger
triggers:
- gerrit:
trigger-on-change-abandoned-event: true
trigger-on-change-merged-event: true
trigger-on-change-restored-event: true
trigger-on-comment-added-event: true
trigger-on-draft-published-event: true
trigger-on-patchset-uploaded-event: true
trigger-on-ref-updated-event: false
trigger-approval-category: CRVW
trigger-approval-value: 2
failure-message:
skip-vote:
successful: true
failed: false
# Missing outcome should default to false.
# unstable: false
notbuilt: true
projects:
- project-compare-type: 'PLAIN'
project-pattern: 'myproject'
branch-compare-type: 'PLAIN'
branch-pattern: 'master'
file-paths:
- compare-type: ANT
pattern: subdirectory/**