Switch REG_EXP for project-pattern in common docs-verify
[releng.git] / jjb / opnfv / opnfv-docs.yml
1 ########################
2 # Job configuration for dovetail-docs
3 ########################
4 - project:
5
6     name: opnfv-docs
7
8     project: opnfv-docs
9
10     jobs:
11         - 'opnfv-docs-verify'
12
13     # stream:    branch with - in place of / (eg. stable-arno)
14     # branch:    branch (eg. stable/arno)
15     stream:
16         - master:
17             branch: 'master'
18
19 ########################
20 # job templates
21 ########################
22
23 - job-template:
24     name: 'opnfv-docs-verify'
25
26     node: master
27
28     project-type: freestyle
29
30     logrotate:
31         daysToKeep: 30
32         numToKeep: 10
33         artifactDaysToKeep: -1
34         artifactNumToKeep: -1
35
36     parameters:
37         - project-parameter:
38             project: $GERRIT_PROJECT
39         - gerrit-parameter:
40             branch: 'master'
41
42     scm:
43         - gerrit-trigger-scm:
44             credentials-id: '{ssh-credentials}'
45             refspec: '$GERRIT_REFSPEC'
46             choosing-strategy: 'gerrit'
47
48     wrappers:
49         - ssh-agent-credentials:
50             user: '{ssh-credentials}'
51
52     triggers:
53         - gerrit:
54             trigger-on:
55                 - patchset-created-event:
56                     exclude-drafts: 'false'
57                     exclude-trivial-rebase: 'false'
58                     exclude-no-code-change: 'false'
59                 - draft-published-event
60                 - comment-added-contains-event:
61                     comment-contains-value: 'recheck'
62                 - comment-added-contains-event:
63                     comment-contains-value: 'reverify'
64             projects:
65               - project-compare-type: 'REG_EXP'
66                 project-pattern: 'copper|releng'
67                 branches:
68                   - branch-compare-type: 'ANT'
69                     branch-pattern: '**/master'
70                 file-paths:
71                   - compare-type: ANT
72                     pattern: 'docs/**'
73
74     builders:
75        - shell:
76            !include-raw ../../utils/docu-build-new.sh