Feat: switch default build-node to centos8-4c-4g
[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-verify:
10           jenkins-silos: releng sandbox
11       - gerrit-jenkins-sandbox-cleanup
12       - gerrit-jjb-deploy-job
13       - gerrit-jjb-merge:
14           build-timeout: 90
15       - gerrit-jjb-verify:
16           build-timeout: 90
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           archive-artifacts: docs/cloud-images.rst
23       - gerrit-info-yaml-verify
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: centos8-builder-2c-2g
32     archive-artifacts: "**/*.log"
33     build-timeout: 30
34     jjb-version: 5.0.2
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: centos8-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: centos8-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: centos8-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 - job-template:
126     name: "builder-update-image-list"
127     project-type: freestyle
128     node: centos8-builder-2c-1g
129
130     properties:
131       - opendaylight-infra-properties:
132           build-days-to-keep: 7
133
134     parameters:
135       - opendaylight-infra-parameters:
136           os-cloud: vex
137           project: "{project}"
138           branch: "{branch}"
139           refspec: "refs/heads/{branch}"
140           artifacts: "{archive-artifacts}"
141
142     scm:
143       - git-scm:
144           branch: "{branch}"
145
146     wrappers:
147       - opendaylight-infra-wrappers:
148           build-timeout: "{build-timeout}"
149       # Listed after to override openstack-infra-wrappers clouds.yaml definition
150       - config-file-provider:
151           files:
152             - file-id: clouds-yaml
153               target: "$HOME/.config/openstack/clouds.yaml"
154
155     triggers:
156       # Update image list every Monday to Friday at 11:00 UTC
157       - timed: "0 11 * * 1-5"
158
159     builders:
160       - lf-infra-pre-build
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: "jenkins-releng@opendaylight.org"
169
170     publishers:
171       - email-notification:
172           email-recipients: "{email-recipients}"
173           email-prefix: "[releng]"
174       - lf-infra-publish