Remove triggering downstream jobs for autorelease
[releng/builder.git] / jjb / autorelease / autorelease-projects.yaml
1 ---
2 - project:
3     name: autorelease-projects
4     jobs:
5       - 'autorelease-release-{stream}'
6
7     stream:
8       - nitrogen:
9           next-release-tag: Nitrogen
10           branch: 'master'
11           jdk: 'openjdk8'
12           integration-test: nitrogen
13       - carbon:
14           next-release-tag: Carbon
15           branch: 'stable/carbon'
16           jdk: 'openjdk8'
17           integration-test: carbon
18           karaf-version: karaf3
19       - boron:
20           next-release-tag: Boron-SR4
21           branch: 'stable/boron'
22           jdk: 'openjdk8'
23           integration-test: boron
24           karaf-version: karaf3
25       - beryllium:
26           # Only run once a week since Beryllium is in maintenance mode
27           cron: 'H H * * 0'
28           next-release-tag: Beryllium-SR5
29           branch: 'stable/beryllium'
30           jdk: 'openjdk7'
31           integration-test: beryllium
32           karaf-version: karaf3
33
34     project: 'releng/autorelease'
35     archive-artifacts: >
36         **/*.prop
37         **/*.log
38         patches/**
39         patches.tar.gz
40
41 ###
42 # TODO: Remove this job once guava21 testing is complete
43 ###
44
45 - project:
46     name: autorelease-projects-guava21
47     jobs:
48       - 'autorelease-release-guava21-{stream}'
49
50     stream:
51       - carbon:
52           next-release-tag: Guava21-Testing
53           branch: 'master'
54           jdk: 'openjdk8'
55           integration-test: carbon
56
57     project: 'releng/autorelease'
58     archive-artifacts: '**/*.prop **/*.log **/patches/*.bundle **/patches/*.patch all-bundles.tar.gz'
59
60 - job-template:
61     name: 'autorelease-release-guava21-{stream}'
62
63     project-type: freestyle
64     node: centos7-autorelease-4c-16g
65     jdk: '{jdk}'
66
67     properties:
68       - opendaylight-infra-properties:
69           build-days-to-keep: '30'
70
71     parameters:
72       - maven-exec:
73           maven-version: 'mvn33'
74       - opendaylight-infra-parameters:
75           os-cloud: '{os-cloud}'
76           project: '{project}'
77           branch: '{branch}'
78           refspec: 'refs/heads/{branch}'
79           artifacts: '{archive-artifacts}'
80       - distribution-karaf-version:
81           karaf-version: '{karaf-version}'
82       - autorelease-release-tag:
83           release-tag: '{next-release-tag}'
84       - autorelease-release-branch:
85           release-branch: '{branch}'
86
87     scm:
88       - git:
89           credentials-id: 'opendaylight-jenkins-ssh'
90           url: '$GIT_BASE'
91           refspec: '$GERRIT_REFSPEC'
92           branches:
93             - '$GERRIT_BRANCH'
94           choosing-strategy: 'gerrit'
95           skip-tag: true
96           submodule:
97             recursive: true
98             timeout: 60
99
100     wrappers:
101       - opendaylight-infra-wrappers:
102           build-timeout: '1440'
103
104     triggers:
105       - gerrit:
106           server-name: '{server-name}'
107           trigger-on:
108             - comment-added-contains-event:
109                 comment-contains-value: 'test-guava21-patches'
110           projects:
111             - project-compare-type: 'ANT'
112               project-pattern: '{project}'
113               branches:
114                 - branch-compare-type: 'ANT'
115                   branch-pattern: '**/{branch}'
116           skip-vote:
117             successful: true
118             failed: true
119             unstable: true
120             notbuilt: true
121
122     builders:
123       - shell: |
124           #!/bin/bash
125           cd bgpcep
126           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/bgpcep
127           git review -d 50184
128           cd ..
129           cd centinel
130           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/centinel
131           git review -d 50185
132           cd ..
133           cd controller
134           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/controller
135           git review -d 50176
136           cd ..
137           cd didm
138           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/didm
139           git review -d 50187
140           cd ..
141           cd faas
142           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/faas
143           git review -d 50190
144           cd ..
145           cd genius
146           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/genius
147           git review -d 50192
148           cd ..
149           cd groupbasedpolicy
150           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/groupbasedpolicy
151           git review -d 50200
152           cd ..
153           cd netvirt
154           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/netvirt
155           git review -d 50215
156           cd ..
157           cd odlparent
158           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/odlparent
159           git review -d 49820
160           cd ..
161           cd openflowplugin
162           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/openflowplugin
163           git review -d 50183
164           cd ..
165           cd ovsdb
166           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/ovsdb
167           git review -d 50191
168           cd ..
169           cd yangtools
170           git remote add gerrit ssh://jenkins-$SILO@git.opendaylight.org:29418/yangtools
171           git review -d 50173
172           cd ..
173       # force jenkins install of maven version before any shell scripts use it
174       - maven-target:
175           maven-version: 'mvn33'
176           goals: '-version'
177           settings: 'autorelease-settings'
178           settings-type: cfp
179           global-settings: 'odl-global-settings'
180           global-settings-type: cfp
181       - wipe-local-maven-repo
182       - jacoco-nojava-workaround
183       - shell: "./scripts/list-project-dependencies.sh"
184       - autorelease-determine-merge-order
185       - autorelease-cfp:
186           autorelease-settings: 'autorelease-settings'
187           odl-global-settings: 'odl-global-settings'
188       - autorelease-generate-taglist
189       - autorelease-distribute-taglist
190       - autorelease-generate-release-patches
191       # In a perfect world projects should be releasing separately and we consume them
192       # via a project that pulls the release bits from each project from Nexus.
193       # Keep the patches compatible with that ideal, but apply an edit
194       # to enable building in a single maven reactor afterwards.
195       - autorelease-fix-relative-paths
196       - maven-target:
197           maven-version: 'mvn33'
198           pom: 'pom.xml'
199           goals: >
200               clean deploy -V -B -Pintegrationtests,docs,repoBuild -Djenkins
201               -Dcheckstyle.skip=true
202               -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
203               -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
204           java-opts:
205             - '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
206           settings: 'autorelease-settings'
207           settings-type: cfp
208           global-settings: 'odl-global-settings'
209           global-settings-type: cfp
210       - autorelease-maven-deploy
211       - autorelease-get-integration-test-variables
212       - autorelease-maven-sources:
213           opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
214           maven-version: 'mvn33'
215           settings: 'autorelease-settings'
216           global-settings: 'odl-global-settings'
217       - autorelease-maven-sources-post-process
218       - shell: |
219           mkdir -p archives/
220           cp *.log *.prop $_
221
222     publishers:
223       - email-notification:
224           email-recipients: '{email-recipients}'
225           email-prefix: '[autorelease]'
226       - trigger-parameterized-builds:
227           - project: 'integration-distribution-test-{integration-test}'
228             condition: UNSTABLE_OR_BETTER
229             property-file: variables.jenkins-trigger
230             fail-on-missing: true
231       - opendaylight-infra-shiplogs:
232           maven-version: 'mvn33'
233
234
235 ###
236 # TODO: Remove this job once carbon tests failures are resolved
237 # This jobs skips all tests and is intended to stage artifacts for integration
238 # testing
239 ###
240
241 - project:
242     name: autorelease-projects-notests
243     jobs:
244       - 'autorelease-release-notests-{stream}'
245
246     stream:
247       - carbon:
248           next-release-tag: Carbon
249           branch: 'stable/carbon'
250           jdk: 'openjdk8'
251           integration-test: carbon
252           karaf-version: karaf3
253
254
255     project: 'releng/autorelease'
256     archive-artifacts: '**/*.prop **/*.log **/patches/*.bundle **/patches/*.patch all-bundles.tar.gz'
257
258
259 # Autorelease build jobs
260 - job-template:
261     name: 'autorelease-release-notests-{stream}'
262
263     project-type: freestyle
264     node: centos7-autorelease-4c-16g
265     jdk: '{jdk}'
266     cron: 'H 0 * * *'
267
268     properties:
269       - build-discarder:
270           days-to-keep: '30'
271           num-to-keep: 40
272           artifact-num-to-keep: 1
273     # Make sure we only archive the last artifact until we figure out why
274     # autorelease carbon is not generating a staging repo.
275     #   - opendaylight-infra-properties:
276     #       build-days-to-keep: '30'
277
278     parameters:
279       - maven-exec:
280           maven-version: 'mvn33'
281       - opendaylight-infra-parameters:
282           os-cloud: '{os-cloud}'
283           project: '{project}'
284           branch: '{branch}'
285           refspec: 'refs/heads/{branch}'
286           artifacts: '{archive-artifacts}'
287       - distribution-karaf-version:
288           karaf-version: '{karaf-version}'
289       - autorelease-release-tag:
290           release-tag: '{next-release-tag}'
291       - autorelease-release-branch:
292           release-branch: '{branch}'
293
294     scm:
295       - git:
296           credentials-id: 'opendaylight-jenkins-ssh'
297           url: '$GIT_BASE'
298           refspec: '$GERRIT_REFSPEC'
299           branches:
300             - '$GERRIT_BRANCH'
301           choosing-strategy: 'gerrit'
302           skip-tag: true
303           submodule:
304             recursive: true
305             timeout: 60
306
307     wrappers:
308       - opendaylight-infra-wrappers:
309           build-timeout: '1440'
310
311     triggers:
312       - timed: '{cron}'
313
314     builders:
315       # force jenkins install of maven version before any shell scripts use it
316       - maven-target:
317           maven-version: 'mvn33'
318           goals: '-version'
319           settings: 'autorelease-settings'
320           settings-type: cfp
321           global-settings: 'odl-global-settings'
322           global-settings-type: cfp
323       - wipe-local-maven-repo
324       - jacoco-nojava-workaround
325       - shell: "./scripts/list-project-dependencies.sh"
326       - autorelease-determine-merge-order
327       - autorelease-cfp:
328           autorelease-settings: 'autorelease-settings'
329           odl-global-settings: 'odl-global-settings'
330       - autorelease-generate-taglist
331       - autorelease-distribute-taglist
332       - distribute-build-url:
333           path: 'integration/distribution/$KARAF_ARTIFACT/src/main/assembly'
334       - autorelease-generate-release-patches
335       # In a perfect world projects should be releasing separately and we consume them
336       # via a project that pulls the release bits from each project from Nexus.
337       # Keep the patches compatible with that ideal, but apply an edit
338       # to enable building in a single maven reactor afterwards.
339       - autorelease-fix-relative-paths
340       - maven-target:
341           maven-version: 'mvn33'
342           pom: 'pom.xml'
343           goals: |
344               clean deploy
345               -Pintegrationtests,docs,repoBuild
346               -Dcheckstyle.skip=true
347               -DskipTests=true
348               -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
349               {opendaylight-infra-mvn-opts}
350           java-opts:
351             - '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
352           settings: 'autorelease-settings'
353           settings-type: cfp
354           global-settings: 'odl-global-settings'
355           global-settings-type: cfp
356       - autorelease-maven-deploy
357       - autorelease-get-integration-test-variables
358       - autorelease-maven-sources:
359           opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
360           maven-version: 'mvn33'
361           settings: 'autorelease-settings'
362           global-settings: 'odl-global-settings'
363       - autorelease-maven-sources-post-process
364       - shell: |
365           mkdir -p archives/
366           cp *.log *.prop $_
367
368     publishers:
369       - opendaylight-infra-notify-status
370       - opendaylight-infra-sysstats
371       - archive:
372           # Need to archive dependencies.log in Jenkins to provide a simple
373           # way for downstream jobs to pull the latest version of this file
374           # in their builds.
375           # TODO stop archiving **/*.zip once we figure out why artifacts are
376           #      not deploying to Nexus
377           artifacts: 'dependencies.log, **/*.zip, /var/log/sa/*'
378       - opendaylight-infra-shiplogs:
379           maven-version: 'mvn33'
380
381
382 ###
383 # TODO: Remove this job once carbon tests failures are resolved
384 # This jobs uses -fn (fail never) and is intended to run the build until
385 # complition without being intruptted on test failures.
386 ###
387
388 - project:
389     name: autorelease-projects-failnever
390     jobs:
391       - 'autorelease-release-failnever-{stream}'
392
393     stream:
394       - carbon:
395           next-release-tag: Carbon
396           branch: 'stable/carbon'
397           jdk: 'openjdk8'
398           integration-test: carbon
399           karaf-version: karaf3
400
401     project: 'releng/autorelease'
402     archive-artifacts: '**/*.prop **/*.log **/patches/*.bundle **/patches/*.patch all-bundles.tar.gz'
403
404
405 # Autorelease build jobs
406 - job-template:
407     name: 'autorelease-release-failnever-{stream}'
408
409     project-type: freestyle
410     node: centos7-autorelease-4c-16g
411     jdk: '{jdk}'
412     cron: 'H 0 * * *'
413
414     properties:
415       - build-discarder:
416           days-to-keep: '30'
417           num-to-keep: 40
418           artifact-num-to-keep: 1
419     # Make sure we only archive the last artifact until we figure out why
420     # autorelease carbon is not generating a staging repo.
421     #   - opendaylight-infra-properties:
422     #       build-days-to-keep: '30'
423
424     parameters:
425       - maven-exec:
426           maven-version: 'mvn33'
427       - opendaylight-infra-parameters:
428           os-cloud: '{os-cloud}'
429           project: '{project}'
430           branch: '{branch}'
431           refspec: 'refs/heads/{branch}'
432           artifacts: '{archive-artifacts}'
433       - distribution-karaf-version:
434           karaf-version: '{karaf-version}'
435       - autorelease-release-tag:
436           release-tag: '{next-release-tag}'
437       - autorelease-release-branch:
438           release-branch: '{branch}'
439
440     scm:
441       - git:
442           credentials-id: 'opendaylight-jenkins-ssh'
443           url: '$GIT_BASE'
444           refspec: '$GERRIT_REFSPEC'
445           branches:
446             - '$GERRIT_BRANCH'
447           choosing-strategy: 'gerrit'
448           skip-tag: true
449           submodule:
450             recursive: true
451             timeout: 60
452
453     wrappers:
454       - opendaylight-infra-wrappers:
455           build-timeout: '1440'
456
457     triggers:
458       - timed: '{cron}'
459
460     builders:
461       # force jenkins install of maven version before any shell scripts use it
462       - maven-target:
463           maven-version: 'mvn33'
464           goals: '-version'
465           settings: 'autorelease-settings'
466           settings-type: cfp
467           global-settings: 'odl-global-settings'
468           global-settings-type: cfp
469       - wipe-local-maven-repo
470       - jacoco-nojava-workaround
471       - shell: "./scripts/list-project-dependencies.sh"
472       - autorelease-determine-merge-order
473       - autorelease-cfp:
474           autorelease-settings: 'autorelease-settings'
475           odl-global-settings: 'odl-global-settings'
476       - autorelease-generate-taglist
477       - autorelease-distribute-taglist
478       - distribute-build-url:
479           path: 'integration/distribution/$KARAF_ARTIFACT/src/main/assembly'
480       - autorelease-generate-release-patches
481       # In a perfect world projects should be releasing separately and we consume them
482       # via a project that pulls the release bits from each project from Nexus.
483       # Keep the patches compatible with that ideal, but apply an edit
484       # to enable building in a single maven reactor afterwards.
485       - autorelease-fix-relative-paths
486       - maven-target:
487           maven-version: 'mvn33'
488           pom: 'pom.xml'
489           goals: |
490               clean deploy
491               -Pintegrationtests,docs,repoBuild
492               -Dcheckstyle.skip=true
493               -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
494               -fn
495               {opendaylight-infra-mvn-opts}
496           java-opts:
497             - '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
498           settings: 'autorelease-settings'
499           settings-type: cfp
500           global-settings: 'odl-global-settings'
501           global-settings-type: cfp
502       - autorelease-maven-deploy
503       - autorelease-get-integration-test-variables
504       - autorelease-maven-sources:
505           opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
506           maven-version: 'mvn33'
507           settings: 'autorelease-settings'
508           global-settings: 'odl-global-settings'
509       - autorelease-maven-sources-post-process
510       - shell: |
511           mkdir -p archives/
512           cp *.log *.prop $_
513
514     publishers:
515       - opendaylight-infra-notify-status
516       - opendaylight-infra-sysstats
517       - archive:
518           # Need to archive dependencies.log in Jenkins to provide a simple
519           # way for downstream jobs to pull the latest version of this file
520           # in their builds.
521           # TODO stop archiving **/*.zip once we figure out why artifacts are
522           #      not deploying to Nexus
523           artifacts: 'dependencies.log, **/*.zip, /var/log/sa/*'
524       - opendaylight-infra-shiplogs:
525           maven-version: 'mvn33'