Rename archive-build macro to opendaylight-infra-shiplogs
[releng/builder.git] / jjb / releng-jobs.yaml
1 - project:
2     name: builder-jobs
3     jobs:
4         - 'builder-verify-jjb'
5         - 'builder-verify-python'
6         - 'builder-merge'
7         - 'builder-weekly'
8         - 'builder-check-poms'
9
10     project: 'releng/builder'
11
12 - job-template:
13     name: builder-verify-jjb
14     node: jjbuilder
15
16     project-type: freestyle
17
18     logrotate:
19         daysToKeep: 7
20
21     parameters:
22         - opendaylight-infra-parameters:
23             project: '{project}'
24             branch: 'master'
25             refspec: 'refs/heads/master'
26             artifacts: '{archive-artifacts}'
27
28     scm:
29         - gerrit-trigger-scm:
30             refspec: '$GERRIT_REFSPEC'
31             choosing-strategy: 'gerrit'
32
33     wrappers:
34         - opendaylight-infra-wrappers:
35             build-timeout: '{build-timeout}'
36
37     triggers:
38         - gerrit:
39             server-name: 'OpenDaylight'
40             trigger-on:
41                 - patchset-created-event:
42                     exclude-drafts: 'false'
43                     exclude-trivial-rebase: 'false'
44                     exclude-no-code-change: 'false'
45                 - draft-published-event
46                 - comment-added-contains-event:
47                     comment-contains-value: 'recheck'
48             projects:
49               - project-compare-type: 'ANT'
50                 project-pattern: 'releng/builder'
51                 branches:
52                   - branch-compare-type: 'ANT'
53                     branch-pattern: '**/master'
54                 file-paths:
55                     - compare-type: ANT
56                       pattern: jjb/**
57                     - compare-type: ANT
58                       pattern: jjb-templates/**
59
60     builders:
61         - opendaylight-infra-pre-builders
62         - shell: |
63             pip freeze
64             jenkins-jobs -l DEBUG test --recursive -o archives/job_output jjb/
65             gzip archives/job_output/*
66         - releng-check-unicode
67
68     publishers:
69         - email-notification:
70             email-prefix: '[releng]'
71         - opendaylight-infra-shiplogs:
72             maven-version: '{mvn33}'
73
74 - job-template:
75     name: builder-verify-python
76     node: centos7-java-builder-2c-8g
77
78     project-type: freestyle
79
80     logrotate:
81         daysToKeep: 7
82         numToKeep: 10
83         artifactDaysToKeep: -1
84         artifactNumToKeep: -1
85
86     parameters:
87         - opendaylight-infra-parameters:
88             project: '{project}'
89             branch: 'master'
90             refspec: 'refs/heads/master'
91             artifacts: '{archive-artifacts}'
92
93     scm:
94         - gerrit-trigger-scm:
95             refspec: '$GERRIT_REFSPEC'
96             choosing-strategy: 'gerrit'
97
98     wrappers:
99         - opendaylight-infra-wrappers:
100             build-timeout: '{build-timeout}'
101
102     triggers:
103         - gerrit:
104             server-name: 'OpenDaylight'
105             trigger-on:
106                 - patchset-created-event:
107                     exclude-drafts: 'false'
108                     exclude-trivial-rebase: 'false'
109                     exclude-no-code-change: 'false'
110                 - draft-published-event
111                 - comment-added-contains-event:
112                     comment-contains-value: 'recheck'
113             projects:
114               - project-compare-type: 'ANT'
115                 project-pattern: 'releng/builder'
116                 branches:
117                   - branch-compare-type: 'ANT'
118                     branch-pattern: '**/master'
119                 file-paths:
120                     - compare-type: ANT
121                       pattern: scripts/**
122
123
124     builders:
125         - opendaylight-infra-pre-builders
126         - shell: |
127             virtualenv $WORKSPACE/venv
128             source $WORKSPACE/venv/bin/activate
129             pip install --upgrade pip
130             pip freeze
131             pip install flake8
132             flake8 scripts/
133
134     publishers:
135         - email-notification:
136             email-prefix: '[releng]'
137         - opendaylight-infra-shiplogs:
138             maven-version: '{mvn33}'
139
140 - job-template:
141     name: 'builder-merge'
142     node: jjbuilder
143
144     # builder-merge job to run JJB update
145     #
146     # This job's purpose is to update all the JJB
147
148     project-type: freestyle
149
150     logrotate:
151         daysToKeep: 7
152         numToKeep: 3
153         artifactDaysToKeep: -1
154         artifactNumToKeep: -1
155
156     parameters:
157         - opendaylight-infra-parameters:
158             project: '{project}'
159             branch: 'master'
160             refspec: 'refs/heads/master'
161             artifacts: '{archive-artifacts}'
162
163     scm:
164         - gerrit-trigger-scm:
165             refspec: ''
166             choosing-strategy: 'default'
167
168     wrappers:
169         - opendaylight-infra-wrappers:
170             build-timeout: '{build-timeout}'
171
172     triggers:
173         - gerrit:
174             server-name: 'OpenDaylight'
175             trigger-on:
176                 - change-merged-event
177                 - comment-added-contains-event:
178                     comment-contains-value: 'remerge'
179             projects:
180               - project-compare-type: 'ANT'
181                 project-pattern: 'releng/builder'
182                 branches:
183                     - branch-compare-type: 'ANT'
184                       branch-pattern: '**/master'
185                 file-paths:
186                     - compare-type: ANT
187                       pattern: jjb/**
188                     - compare-type: ANT
189                       pattern: jjb-templates/**
190
191     builders:
192         - opendaylight-infra-pre-builders
193         - shell: |
194             pip freeze
195             jenkins-jobs --version
196             jenkins-jobs update --recursive --delete-old --workers 4 jjb/
197
198     publishers:
199         - email-notification:
200             email-prefix: '[releng]'
201         - opendaylight-infra-shiplogs:
202             maven-version: '{mvn33}'
203
204 - job-template:
205     name: 'builder-weekly'
206     disabled: true
207     node: jjbuilder
208
209     # builder-weekly job to run JJB update weekly
210     #
211     # This job's purpose is to update all the JJB on a weekly (Sunday)
212     # basis with --flush-cache enabled to ensure jobs are okay
213
214     project-type: freestyle
215
216     logrotate:
217         daysToKeep: 7
218         numToKeep: 3
219         artifactDaysToKeep: -1
220         artifactNumToKeep: -1
221
222     parameters:
223         - opendaylight-infra-parameters:
224             project: '{project}'
225             branch: 'master'
226             refspec: 'refs/heads/master'
227             artifacts: '{archive-artifacts}'
228
229     scm:
230         - git-scm:
231             branch: 'master'
232
233     wrappers:
234         - opendaylight-infra-wrappers:
235             build-timeout: '{build-timeout}'
236
237     triggers:
238         - timed: 'H H * * 0'
239
240     builders:
241         - opendaylight-infra-pre-builders
242         - shell: |
243             jenkins-jobs --flush-cache update --recursive jjb/
244
245     publishers:
246         - email-notification:
247             email-prefix: '[releng]'
248         - opendaylight-infra-shiplogs:
249             maven-version: '{mvn33}'
250
251 - job-template:
252     name: builder-check-poms
253     node: centos7-java-builder-2c-8g
254
255     project-type: freestyle
256
257     logrotate:
258         daysToKeep: 1
259         numToKeep: 1
260         artifactDaysToKeep: -1
261         artifactNumToKeep: -1
262
263     parameters:
264         - opendaylight-infra-parameters:
265             project: '{project}'
266             branch: 'master'
267             refspec: 'refs/heads/master'
268             artifacts: '{archive-artifacts}'
269
270     wrappers:
271         - opendaylight-infra-wrappers:
272             build-timeout: '{build-timeout}'
273
274     triggers:
275         - timed: 'H H * * 1'
276
277     builders:
278         - opendaylight-infra-pre-builders
279         - shell:
280             !include-raw-escape:
281                 - include-raw-check-poms.sh
282
283     publishers:
284         - email-notification:
285             email-prefix: '[releng]'
286         - opendaylight-infra-shiplogs:
287             maven-version: '{mvn33}'