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