Merge "jjb: fix output path in docs uploader"
[releng.git] / jjb / opnfv / opnfv-docs.yml
1 ########################
2 # Job configuration for opnfv-docs
3 ########################
4 - project:
5
6     name: opnfv-docs
7
8     project: opnfv-docs
9
10     jobs:
11         - 'opnfv-docs-verify'
12         - 'opnfv-docs-merge'
13
14     # stream:    branch with - in place of / (eg. stable-arno)
15     # branch:    branch (eg. stable/arno)
16     stream:
17         - master:
18             branch: 'master'
19
20 ########################
21 # job templates
22 ########################
23
24 - job-template:
25     name: 'opnfv-docs-verify'
26
27     logrotate:
28         daysToKeep: 30
29         numToKeep: 10
30         artifactDaysToKeep: -1
31         artifactNumToKeep: -1
32
33     parameters:
34         - project-parameter:
35             project: $GERRIT_PROJECT
36         - gerrit-parameter:
37             branch: 'master'
38
39     scm:
40         - gerrit-trigger-scm:
41             credentials-id: '{ssh-credentials}'
42             refspec: '$GERRIT_REFSPEC'
43             choosing-strategy: 'gerrit'
44
45     triggers:
46         - gerrit:
47             trigger-on:
48                 - patchset-created-event:
49                     exclude-drafts: 'false'
50                     exclude-trivial-rebase: 'false'
51                     exclude-no-code-change: 'false'
52                 - draft-published-event
53                 - comment-added-contains-event:
54                     comment-contains-value: 'recheck'
55                 - comment-added-contains-event:
56                     comment-contains-value: 'reverify'
57             projects:
58               - project-compare-type: 'REG_EXP'
59 #Left out arno projects oscar|octopus|functest|genesis
60                 project-pattern: 'vswitchperf|yardstick|apex|availability|bottlenecks|compass4nfv|conductor|copper|doctor|dovetail|dpacc|escalator|fastpathmetrics|fuel|inspector|ipv6|joid|kvmfornfv|lsoapi|moon|movie|multisite|onosfw|ovsnfv|parser|prediction|promise|qtip|releng|rs|sdnvpn|sfc|vnf_forwarding_graph|enfv|pinpoint|pharos|opnfvdocs'
61                 branches:
62                   - branch-compare-type: 'ANT'
63                     branch-pattern: '**/master'
64                 file-paths:
65                   - compare-type: ANT
66                     pattern: 'docs/**'
67
68     builders:
69         - upload-review-docs
70
71 - job-template:
72     name: 'opnfv-docs-merge'
73
74     logrotate:
75         daysToKeep: 30
76         numToKeep: 10
77         artifactDaysToKeep: -1
78         artifactNumToKeep: -1
79
80     parameters:
81         - project-parameter:
82             project: $GERRIT_PROJECT
83         - gerrit-parameter:
84             branch: 'master'
85
86     scm:
87         - gerrit-trigger-scm:
88             credentials-id: '{ssh-credentials}'
89             refspec: '$GERRIT_REFSPEC'
90             choosing-strategy: 'gerrit'
91
92     triggers:
93         - gerrit:
94             trigger-on:
95                 - change-merged-event
96                 - comment-added-contains-event:
97                     comment-contains-value: 'remerge'
98             projects:
99               - project-compare-type: 'REG_EXP'
100                 project-pattern: 'vswitchperf|yardstick|apex|availability|bottlenecks|compass4nfv|conductor|copper|doctor|dovetail|dpacc|escalator|fastpathmetrics|fuel|inspector|ipv6|joid|kvmfornfv|lsoapi|moon|movie|multisite|onosfw|ovsnfv|parser|prediction|promise|qtip|releng|rs|sdnvpn|sfc|vnf_forwarding_graph|enfv|pinpoint|pharos|opnfvdocs'
101                 branches:
102                   - branch-compare-type: 'ANT'
103                     branch-pattern: '**/master'
104                 file-paths:
105                   - compare-type: ANT
106                     pattern: 'docs/**'
107
108     builders:
109         - upload-merged-docs