6e7b40bf277086134d7c3ae391e9b19cbe463a7b
[releng.git] / jjb / opnfvdocs / opnfvdocs.yml
1 - project:
2     name: opnfvdocs
3     jobs:
4         - 'opnfvdocs-daily-{stream}'
5         - 'opnfvdocs-merge'
6         - 'opnfvdocs-verify'
7
8     # stream:    branch with - in place of / (eg. stable-helium)
9     # branch:    branch (eg. stable/helium)
10     stream:
11         - master:
12             branch: 'master'
13
14     project: 'opnfvdocs'
15
16 - job-template:
17     name: 'opnfvdocs-daily-{stream}'
18
19     node: gce-opnfv-docker-1
20
21     # Job template for daily builders
22     #
23     # Required Variables:
24     #     stream:    branch with - in place of / (eg. stable)
25     #     branch:    branch (eg. stable)
26
27     project-type: freestyle
28
29     logrotate:
30         daysToKeep: '{build-days-to-keep}'
31         numToKeep: '{build-num-to-keep}'
32         artifactDaysToKeep: '{build-artifact-days-to-keep}'
33         artifactNumToKeep: '{build-artifact-num-to-keep}'
34
35     parameters:
36         - project-parameter:
37             project: '{project}'
38
39     scm:
40         - git-scm:
41             credentials-id: '{ssh-credentials}'
42             refspec: ''
43             branch: '{branch}'
44
45     wrappers:
46         - ssh-agent-credentials:
47             user: '{ssh-credentials}'
48
49     triggers:
50         - timed: 'H H * * *'
51
52     builders:
53         - shell:
54             !include-raw docu-build.sh
55
56 - job-template:
57     name: 'opnfvdocs-verify'
58
59     node: gce-opnfv-docker-1
60
61     project-type: freestyle
62
63     logrotate:
64         daysToKeep: 30
65         numToKeep: 10
66         artifactDaysToKeep: -1
67         artifactNumToKeep: -1
68
69     parameters:
70         - project-parameter:
71             project: '{project}'
72         - gerrit-parameter:
73             branch: 'master'
74     scm:
75         - gerrit-trigger-scm:
76             credentials-id: '{ssh-credentials}'
77             refspec: '$GERRIT_REFSPEC'
78             choosing-strategy: 'gerrit'
79
80     wrappers:
81         - ssh-agent-credentials:
82             user: '{ssh-credentials}'
83
84     triggers:
85         - gerrit:
86             trigger-on:
87                 - patchset-created-event:
88                     exclude-drafts: 'false'
89                     exclude-trivial-rebase: 'false'
90                     exclude-no-code-change: 'false'
91                 - draft-published-event
92                 - comment-added-contains-event:
93                     comment-contains-value: 'recheck'
94                 - comment-added-contains-event:
95                     comment-contains-value: 'reverify'
96             projects:
97               - project-compare-type: 'ANT'
98                 project-pattern: 'opnfvdocs'
99                 branches:
100                   - branch-compare-type: 'ANT'
101                     branch-pattern: '**/master'
102
103     builders:
104         - shell:
105             !include-raw docu-build.sh
106
107 - job-template:
108     name: 'opnfvdocs-merge'
109
110     node: gce-opnfv-docker-1
111
112     # builder-merge job to run JJB update
113     #
114     # This job's purpose is to update all the JJB
115
116     project-type: freestyle
117
118     logrotate:
119         daysToKeep: 30
120         numToKeep: 40
121         artifactDaysToKeep: -1
122         artifactNumToKeep: 5
123
124     parameters:
125         - project-parameter:
126             project: '{project}'
127         - gerrit-parameter:
128             branch: 'master'
129
130     scm:
131         - gerrit-trigger-scm:
132             credentials-id: '{ssh-credentials}'
133             refspec: ''
134             choosing-strategy: 'default'
135
136     wrappers:
137         - ssh-agent-credentials:
138             user: '{ssh-credentials}'
139
140     triggers:
141         - gerrit:
142             trigger-on:
143                 - change-merged-event
144                 - comment-added-contains-event:
145                     comment-contains-value: 'remerge'
146             projects:
147               - project-compare-type: 'ANT'
148                 project-pattern: 'opnfvdocs'
149                 branches:
150                     - branch-compare-type: 'ANT'
151                       branch-pattern: '**/master'
152
153     builders:
154         - shell:
155             !include-raw docu-build.sh
156