Chore: Update common-packer to latest v0.16.5
[releng/builder.git] / jjb / releng-jobs.yaml
1 ---
2 - project:
3     name: builder-jobs
4     jobs:
5       - '{project-name}-rtd-jobs':
6           project-pattern: releng/builder
7           rtd-build-url: https://readthedocs.org/api/v2/webhook/opendaylight-releng-builder/32926/
8           rtd-token: e9fa62bd60a39c22de631791309ccacc37a9929e
9       - gerrit-jenkins-cfg-merge:
10           jenkins-silos: releng sandbox
11       - gerrit-jenkins-cfg-verify:
12           jenkins-silos: releng sandbox
13       - gerrit-jenkins-sandbox-cleanup
14       - gerrit-jjb-deploy-job
15       - gerrit-jjb-merge:
16           build-node: centos7-builder-4c-4g
17           build-timeout: 90
18       - gerrit-jjb-verify
19       - builder-check-poms
20       - builder-copy-sandbox-logs
21       - gerrit-tox-verify
22       # Automation for docs and jobs
23       - 'builder-update-image-list'
24
25     # The following values are only specified here
26     # so that code blocks look similar to other projects.
27     project: 'releng/builder'
28     project-name: builder
29     stream: master
30     branch: master
31     build-node: centos7-builder-2c-2g
32     archive-artifacts: '**/*.log'
33     build-timeout: 30
34     jjb-version: 2.9.1
35
36 - project:
37     name: builder-openstack
38     jobs:
39       - gerrit-openstack-cron
40
41     project: 'releng/builder'
42     project-name: builder
43     build-node: centos7-builder-2c-2g
44
45     jenkins-urls: >
46         https://jenkins.opendaylight.org/releng
47         https://jenkins.opendaylight.org/sandbox
48     openstack-cloud: vex
49
50 - job-template:
51     name: builder-check-poms
52     node: centos7-builder-2c-1g
53
54     project-type: freestyle
55
56     properties:
57       - opendaylight-infra-properties:
58           build-days-to-keep: 14
59
60     parameters:
61       - opendaylight-infra-parameters:
62           os-cloud: '{os-cloud}'
63           project: '{project}'
64           branch: '{branch}'
65           refspec: 'refs/heads/{branch}'
66           artifacts: '{archive-artifacts}'
67
68     wrappers:
69       - opendaylight-infra-wrappers:
70           build-timeout: '{build-timeout}'
71
72     triggers:
73       - timed: 'H H * * 1'
74
75     builders:
76       - shell: !include-raw-escape: check-poms.sh
77
78     publishers:
79       - email-notification:
80           email-recipients: '{email-recipients}'
81           email-prefix: '[releng]'
82       - lf-infra-publish
83
84 - job-template:
85     name: builder-copy-sandbox-logs
86     node: centos7-builder-2c-1g
87
88     project-type: freestyle
89
90     properties:
91       - opendaylight-infra-properties:
92           build-days-to-keep: 1
93
94     parameters:
95       - opendaylight-infra-parameters:
96           os-cloud: ''
97           project: ''
98           branch: ''
99           refspec: ''
100           artifacts: ''
101
102     wrappers:
103       - opendaylight-infra-wrappers:
104           build-timeout: 10
105
106     triggers:
107       - gerrit:
108           server-name: '{gerrit-server-name}'
109           trigger-on:
110             - comment-added-contains-event:
111                 comment-contains-value: 'copy-logs:'
112           projects:
113             - project-compare-type: ANT
114               project-pattern: '**'
115               branches:
116                 - branch-compare-type: ANT
117                   branch-pattern: '**'
118
119     builders:
120       - shell: !include-raw-escape: copy-sandbox-logs.sh
121
122     publishers:
123       - lf-infra-publish
124
125
126 - job-template:
127     name: 'builder-update-image-list'
128     project-type: freestyle
129     node: centos7-builder-2c-1g
130
131     properties:
132       - opendaylight-infra-properties:
133           build-days-to-keep: 7
134
135     parameters:
136       - opendaylight-infra-parameters:
137           os-cloud: vex
138           project: '{project}'
139           branch: '{branch}'
140           refspec: 'refs/heads/{branch}'
141           artifacts: '{archive-artifacts}'
142
143     scm:
144       - git-scm:
145           branch: '{branch}'
146
147     wrappers:
148       - opendaylight-infra-wrappers:
149           build-timeout: '{build-timeout}'
150       # Listed after to override openstack-infra-wrappers clouds.yaml definition
151       - config-file-provider:
152           files:
153             - file-id: clouds-yaml
154               target: '$HOME/.config/openstack/clouds.yaml'
155
156     triggers:
157       # Update image list every Monday to Friday at 11:00 UTC
158       - timed: '0 11 * * 1-5'
159
160     builders:
161       - shell: !include-raw-escape: opendaylight-infra-update-image-list.sh
162       - lf-infra-push-gerrit-patch:
163           project: '{project}'
164           gerrit-user: 'jenkins-$SILO'
165           gerrit-host: 'git.opendaylight.org'
166           gerrit-topic: 'releng-update-cloud-image-list'
167           gerrit-commit-message: 'Update cloud image list docs'
168           reviewers-email: 'jluhrsen@gmail.com'
169
170     publishers:
171       - email-notification:
172           email-recipients: '{email-recipients}'
173           email-prefix: '[releng]'
174       - lf-infra-publish