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