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