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