Fix: Remove portal stage job
[ci-management.git] / jjb / global-templates-script.yaml
1 ---
2 # vim: sw=2 ts=2 sts=2 et :
3
4 - job-template:
5     #
6     # job template for verifying gerrit changeset by shell script
7     #
8     # Required Variables:
9     #   project-name:   name of project
10     #   area:           area of project covered with this verification job
11     #   project:        name of scm repository to work on
12     #   stream:         name of stream used (set the same as branch if you're not sure)
13     #   branch:         git branch to work on
14     #   script:         build script to execute
15     # Optional Variables:
16     #   pattern:          trigger job only if modification covered file in pattern
17     #   build-node:     label(flavor) of jenkins slave
18     name: '{project-name}-{stream}-{area}-verify-shell'
19     node: '{build-node}'
20     type: freestyle
21     concurrent: true
22     disable-job: false
23     disabled: '{disable-job}'
24
25     pattern: '**'
26
27     parameters:
28       - lf-infra-parameters:
29           branch: '{branch}'
30           project: '{project}'
31           stream: '{stream}'
32           lftools-version: '{lftools-version}'
33
34     scm:
35       - gerrit-trigger-scm:
36           refspec: '$GERRIT_REFSPEC'
37           submodule-recursive: '{submodule-recursive}'
38           choosing-strategy: 'gerrit'
39
40     triggers:
41       - gerrit-trigger-patch-submitted:
42           server: '{server-name}'
43           project: '{project}'
44           branch: '{branch}'
45           files: '{pattern}'
46
47     wrappers:
48       - infra-wrappers:
49           build-timeout: '{build-timeout}'
50
51     builders:
52       - shell: '{script}'
53
54     publishers:
55       - lf-infra-publish
56
57 - job-template:
58     # Job template for 2 scm and script trigger
59     #
60     # Required Variables:
61     #   branch:         git branch
62     #   build-node:     what build node to run on
63     #   script:         build script to execute
64     #   extra-project:  extra gerrit project to checkout
65     #   extra-refspec:  refspec for the extra project
66     #   extra-branch:   branch to checkout for the extra project
67     #   checkout-dir:   directory to checkout the extra project to
68     #                     DO NOT SET THIS TO anything that translates to
69     #                     $WORKSPACE as it will destroy the initial
70     #                     project checkout
71
72     name: '{project-name}-{stream}-two-scm-verify-script'
73
74     project-type: freestyle
75     concurrent: true
76     node: '{build-node}'
77
78     properties:
79       - infra-properties:
80           build-days-to-keep: '{build-days-to-keep}'
81
82     parameters:
83       - infra-parameters:
84           project: '{project}'
85           branch: '{branch}'
86           refspec: 'refs/heads/{branch}'
87           artifacts: '{archive-artifacts}'
88       - maven-exec:
89           maven-version: '{maven-version}'
90
91     scm:
92       - gerrit-trigger-scm:
93           refspec: '$GERRIT_REFSPEC'
94           choosing-strategy: 'gerrit'
95           submodule-recursive: '{submodule-recursive}'
96       - git-extra-project:
97           project: '{extra-project}'
98           refspec: '{extra-refspec}'
99           branch: '{extra-branch}'
100           checkout-dir: '{checkout-dir}'
101
102     wrappers:
103       - infra-wrappers:
104           build-timeout: '{build-timeout}'
105
106     triggers:
107       - gerrit-trigger-patch-submitted:
108           server: '{server-name}'
109           project: '{project}'
110           branch: '{branch}'
111           files: '**'
112
113     builders:
114       - lf-infra-pre-build
115       - provide-maven-settings:
116           global-settings-file: 'global-settings'
117           settings-file: '{mvn-settings}'
118       # make sure maven gets installed / setup
119       - maven-target:
120           maven-version: '{maven-version}'
121           goals: '--version'
122           settings: '{mvn-settings}'
123           settings-type: cfp
124           global-settings: 'global-settings'
125           global-settings-type: cfp
126       - shell: '{script}'
127
128     publishers:
129       - lf-infra-publish
130
131 # vim: sw=2 ts=2 sts=2 et :
132
133 - job-template:
134     # Job template for two scm and script trigger - for docker merge
135     #
136     # Required Variables:
137     #   branch:         git branch
138     #   build-node:     what build node to run on
139     #   script:         build script to execute
140
141     name: '{project-name}-{stream}-two-scm-merge-docker-script'
142
143     project-type: freestyle
144     concurrent: true
145     node: '{build-node}'
146
147     properties:
148       - infra-properties:
149           build-days-to-keep: '{build-days-to-keep}'
150
151     parameters:
152       - infra-parameters:
153           project: '{project}'
154           branch: '{branch}'
155           refspec: 'refs/heads/{branch}'
156           artifacts: '{archive-artifacts}'
157       - maven-exec:
158           maven-version: '{maven-version}'
159
160     scm:
161       - gerrit-trigger-scm:
162           refspec: ''
163           choosing-strategy: 'default'
164           submodule-recursive: '{submodule-recursive}'
165       - git-extra-project:
166           project: '{extra-project}'
167           refspec: '{extra-refspec}'
168           branch: '{extra-branch}'
169           checkout-dir: '{checkout-dir}'
170
171     wrappers:
172       - infra-wrappers:
173           build-timeout: '{build-timeout}'
174
175     triggers:
176       - gerrit-trigger-patch-merged:
177           server: '{server-name}'
178           project: '{project}'
179           branch: '{branch}'
180           files: '**'
181
182     builders:
183       - lf-infra-pre-build
184       - provide-maven-settings:
185           global-settings-file: 'global-settings'
186           settings-file: '{mvn-settings}'
187       - docker-login
188       # make sure maven gets installed / setup
189       - maven-target:
190           maven-version: '{maven-version}'
191           goals: '--version'
192           settings: '{mvn-settings}'
193           settings-type: cfp
194           global-settings: 'global-settings'
195           global-settings-type: cfp
196       - shell: '{script}'
197
198     publishers:
199       - lf-infra-publish
200
201 - job-template:
202     # Job template for two scm and script trigger - for docker daily release
203     #
204     # Required Variables:
205     #   branch:         git branch
206     #   build-node:     what build node to run on
207     #   script:         build script to execute
208
209     name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
210
211     project-type: freestyle
212     concurrent: true
213     node: '{build-node}'
214
215     properties:
216       - infra-properties:
217           build-days-to-keep: '{build-days-to-keep}'
218
219     parameters:
220       - infra-parameters:
221           project: '{project}'
222           branch: '{branch}'
223           refspec: 'refs/heads/{branch}'
224           artifacts: '{archive-artifacts}'
225       - maven-exec:
226           maven-version: '{maven-version}'
227
228     scm:
229       - gerrit-trigger-scm:
230           refspec: ''
231           choosing-strategy: 'default'
232           submodule-recursive: '{submodule-recursive}'
233       - git-extra-project:
234           project: '{extra-project}'
235           refspec: '{extra-refspec}'
236           branch: '{extra-branch}'
237           checkout-dir: '{checkout-dir}'
238
239     wrappers:
240       - infra-wrappers:
241           build-timeout: '{build-timeout}'
242
243     triggers:
244       - gerrit-trigger-release-manually:
245           server: '{server-name}'
246           project: '{project}'
247           branch: '{branch}'
248
249     builders:
250       - lf-infra-pre-build
251       - provide-maven-settings:
252           global-settings-file: 'global-settings'
253           settings-file: '{mvn-settings}'
254       - docker-login
255       # make sure maven gets installed / setup
256       - maven-target:
257           maven-version: '{maven-version}'
258           goals: '--version'
259           settings: '{mvn-settings}'
260           settings-type: cfp
261           global-settings: 'global-settings'
262           global-settings-type: cfp
263       - shell: '{script}'
264
265     publishers:
266       - lf-infra-publish