f7e4c5bb4d6d7b5358fc6db9fc1f555317cbe19e
[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     node: master
28
29     project-type: freestyle
30
31     logrotate:
32         daysToKeep: 30
33         numToKeep: 10
34         artifactDaysToKeep: -1
35         artifactNumToKeep: -1
36
37     parameters:
38         - project-parameter:
39             project: $GERRIT_PROJECT
40         - gerrit-parameter:
41             branch: 'master'
42
43     scm:
44         - gerrit-trigger-scm:
45             credentials-id: '{ssh-credentials}'
46             refspec: '$GERRIT_REFSPEC'
47             choosing-strategy: 'gerrit'
48
49     triggers:
50         - gerrit:
51             trigger-on:
52                 - patchset-created-event:
53                     exclude-drafts: 'false'
54                     exclude-trivial-rebase: 'false'
55                     exclude-no-code-change: 'false'
56                 - draft-published-event
57                 - comment-added-contains-event:
58                     comment-contains-value: 'recheck'
59                 - comment-added-contains-event:
60                     comment-contains-value: 'reverify'
61             projects:
62               - project-compare-type: 'REG_EXP'
63 #Left out arno projects oscar|octopus|functest|genesis
64                 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'
65                 branches:
66                   - branch-compare-type: 'ANT'
67                     branch-pattern: '**/master'
68                 file-paths:
69                   - compare-type: ANT
70                     pattern: 'docs/**'
71
72     builders:
73         - upload-review-docs
74
75 - job-template:
76     name: 'opnfv-docs-merge'
77
78     node: master
79
80     project-type: freestyle
81
82     logrotate:
83         daysToKeep: 30
84         numToKeep: 10
85         artifactDaysToKeep: -1
86         artifactNumToKeep: -1
87
88     parameters:
89         - project-parameter:
90             project: $GERRIT_PROJECT
91         - gerrit-parameter:
92             branch: 'master'
93
94     scm:
95         - gerrit-trigger-scm:
96             credentials-id: '{ssh-credentials}'
97             refspec: '$GERRIT_REFSPEC'
98             choosing-strategy: 'gerrit'
99
100
101     triggers:
102         - gerrit:
103             trigger-on:
104                 - change-merged-event
105                 - comment-added-contains-event:
106                     comment-contains-value: 'remerge'
107             projects:
108               - project-compare-type: 'REG_EXP'
109                 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'
110                 branches:
111                   - branch-compare-type: 'ANT'
112                     branch-pattern: '**/master'
113                 file-paths:
114                   - compare-type: ANT
115                     pattern: 'docs/**'
116
117     builders:
118         - upload-merged-docs