ta: multiarch build: ISO, python-peewee RPM
[ci-management.git] / jjb / akraino-templates / akraino-ta-common-templates.yaml
1 ---
2 - job-template:
3     id: akraino-project-stream-type-ta
4     name: '{project-name}-{stream}-{project-type}'
5     archive-artifacts: >
6       work/**/*.spec
7       work/**/*.repo
8       work/**/*.ini
9       work/**/*.cfg
10       work/**/*.log
11       work/**/*.txt
12       work/**/*.json
13       work/tmp/rpms/mock_config/**
14     build-days-to-keep: 30
15     build-timeout: 90
16     branch: master
17     stream: master
18     project-type: freestyle
19     submodule-recursive: true
20     node: '{build-node}'
21     arch: amd64
22
23     properties:
24       - lf-infra-properties:
25           project: '{project}'
26           build-days-to-keep: '{build-days-to-keep}'
27
28     parameters:
29       - lf-infra-parameters:
30           project: '{project}'
31           stream: '{stream}'
32           branch: '{branch}'
33           lftools-version: '{lftools-version}'
34
35       - ta-parameters-ci
36
37       - string:
38           name: ARCHIVE_ARTIFACTS
39           default: '{archive-artifacts}'
40           description: Artifacts to archive to the logs server.
41
42     wrappers:
43       - lf-infra-wrappers:
44           build-timeout: '{build-timeout}'
45           jenkins-ssh-credential: '{jenkins-ssh-credential}'
46
47     scm:
48       - ta-lf-infra-gerrit-scm:
49           jenkins-ssh-credential: '{jenkins-ssh-credential}'
50           git-url: '{git-url}/{project}.git'
51           refspec: '$GERRIT_REFSPEC'
52           branch: '$GERRIT_BRANCH'
53           submodule-recursive: '{submodule-recursive}'
54           submodule-timeout: '{submodule-timeout}'
55           choosing-strategy: 'gerrit'
56           basedir: '$GERRIT_PROJECT'
57
58     triggers:
59       - ta-trigger-job-{project-type}:
60           gerrit-server-name: '{gerrit-server-name}'
61           project: '{project}'
62           branch: '{branch}'
63
64     builders:
65       - ta-builder-install-docker
66       - ta-builder-job-{project-type}:
67           git-url: '{git-url}'
68
69     publishers:
70       - ta-publisher-job-{project-type}:
71           arch: '{arch}'
72
73 - job-template:
74     id: akraino-project-stream-type-ta-rpmbuilder
75     name: '{project-name}-{stream}-{project-type}'
76     archive-artifacts: >
77       work/**/*.spec
78       work/**/*.repo
79       work/**/*.ini
80       work/**/*.cfg
81       work/**/*.log
82       work/**/*.txt
83       work/**/*.json
84       work/tmp/rpms/mock_config/**
85     build-days-to-keep: 30
86     build-timeout: 60
87     branch: master
88     stream: master
89     project-type: freestyle
90     submodule-recursive: true
91     node: '{build-node}'
92
93     properties:
94       - lf-infra-properties:
95           project: '{project}'
96           build-days-to-keep: '{build-days-to-keep}'
97
98     parameters:
99       - lf-infra-parameters:
100           project: '{project}'
101           stream: '{stream}'
102           branch: '{branch}'
103           lftools-version: '{lftools-version}'
104
105       - ta-parameters-ci-{project-name}
106
107       - string:
108           name: ARCHIVE_ARTIFACTS
109           default: '{archive-artifacts}'
110           description: Artifacts to archive to the logs server.
111
112     wrappers:
113       - lf-infra-wrappers:
114           build-timeout: '{build-timeout}'
115           jenkins-ssh-credential: '{jenkins-ssh-credential}'
116
117     scm:
118       - ta-lf-infra-gerrit-scm:
119           jenkins-ssh-credential: '{jenkins-ssh-credential}'
120           git-url: '{git-url}/{project}.git'
121           refspec: '$GERRIT_REFSPEC'
122           branch: '$GERRIT_BRANCH'
123           submodule-recursive: '{submodule-recursive}'
124           submodule-timeout: '{submodule-timeout}'
125           choosing-strategy: 'gerrit'
126           basedir: '$GERRIT_PROJECT'
127
128     triggers:
129       - ta-trigger-job-{project-type}:
130           gerrit-server-name: '{gerrit-server-name}'
131           project: '{project}'
132           branch: '{branch}'
133
134     builders:
135       - ta-builder-job-{project-type}-{project-name}:
136           git-url: '{git-url}'
137
138     publishers:
139       - lf-infra-publish
140
141 - job-template:
142     id: akraino-project-stream-type-ta-build
143     name: '{project-name}-{stream}-{project-type}'
144     archive-artifacts: >
145       work/**/*.spec
146       work/**/*.repo
147       work/**/*.ini
148       work/**/*.cfg
149       work/**/*.log
150       work/**/*.txt
151       work/**/*.json
152       work/tmp/rpms/mock_config/**
153     build-days-to-keep: 30
154     build-timeout: 60
155     branch: master
156     stream: master
157     project-type: freestyle
158     submodule-recursive: true
159     node: '{build-node}'
160
161     properties:
162       - lf-infra-properties:
163           project: '{project}'
164           build-days-to-keep: '{build-days-to-keep}'
165
166     parameters:
167       - lf-infra-parameters:
168           project: '{project}'
169           stream: '{stream}'
170           branch: '{branch}'
171           lftools-version: '{lftools-version}'
172
173       - string:
174           name: ARCHIVE_ARTIFACTS
175           default: '{archive-artifacts}'
176           description: Artifacts to archive to the logs server.
177
178     wrappers:
179       - lf-infra-wrappers:
180           build-timeout: '{build-timeout}'
181           jenkins-ssh-credential: '{jenkins-ssh-credential}'
182
183     scm:
184       - ta-lf-infra-gerrit-scm:
185           jenkins-ssh-credential: '{jenkins-ssh-credential}'
186           git-url: '{git-url}/{project}.git'
187           refspec: '$GERRIT_REFSPEC'
188           branch: '$GERRIT_BRANCH'
189           submodule-recursive: '{submodule-recursive}'
190           submodule-timeout: '{submodule-timeout}'
191           choosing-strategy: 'gerrit'
192           basedir: '$GERRIT_PROJECT'
193
194     triggers:
195       - ta-trigger-job-{project-type}:
196           gerrit-server-name: '{gerrit-server-name}'
197           project: '{project}'
198           branch: '{branch}'
199
200     builders:
201       - ta-builder-tox
202       # TODO: verify ISO creation here
203
204     publishers:
205       - lf-infra-publish
206
207 - job-template:
208     id: akraino-project-release-ta-build
209     name: '{name}'
210     archive-artifacts: >
211       work/**/*.spec
212       work/**/*.repo
213       work/**/*.ini
214       work/**/*.cfg
215       work/**/*.log
216       work/**/*.txt
217       work/**/*.json
218       work/results/bin_checksum/**
219       work/results/repo/**
220       work/results/repo_files/**
221       work/results/rpmlists/**
222       work/results/src_repo/**
223     build-days-to-keep: 30
224     build-timeout: 60
225     branch: master
226     stream: master
227     project-type: freestyle
228     submodule-recursive: true
229     node: '{build-node}'
230
231     properties:
232       - lf-infra-properties:
233           project: '{project}'
234           build-days-to-keep: '{build-days-to-keep}'
235
236     parameters:
237       - lf-infra-parameters:
238           project: '{project}'
239           stream: '{stream}'
240           branch: '{branch}'
241           lftools-version: '{lftools-version}'
242
243       - ta-parameters-manifest
244       - ta-parameters-build-tools
245
246       - string:
247           name: ARCHIVE_ARTIFACTS
248           default: '{archive-artifacts}'
249           description: Artifacts to archive to the logs server.
250
251     wrappers:
252       - lf-infra-wrappers:
253           build-timeout: '{build-timeout}'
254           jenkins-ssh-credential: '{jenkins-ssh-credential}'
255
256     builders:
257       - lf-display-node-uuid
258       - ta-builder-scm:
259           git-url: '{git-url}'
260           project: 'ta/manifest'
261           ref: '$SCM_REFSPEC_MANIFEST'
262       - ta-builder-scm:
263           git-url: '{git-url}'
264           project: 'ta/build-tools'
265           ref: '$SCM_REFSPEC_BUILD_TOOLS'
266       - ta-builder-install-docker
267       - ta-builder-install-build-tools
268       - shell: |2-
269           ta/build-tools/build_images.sh -m ta/manifest -w work
270           find work
271       - ta-lf-infra-ship-isos
272
273     publishers:
274       - lf-infra-publish