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