blob: b3b460f72f89358a64beae99cf568746a2b7e706 [file] [log] [blame]
Kiranf5e41fc2018-02-09 15:34:47 -08001---
Bartek Grzybowskiad114ad2020-03-24 15:48:42 +01002- job-template: &verify_golang_bolierplate
Kiranf5e41fc2018-02-09 15:34:47 -08003 # Job template for Golang verify jobs
4 #
5 # The purpose of this job template is to run:
6 # 1. make build
7 #
Bartek Grzybowskic745ca62020-02-12 15:44:42 +01008 # golangver can be set to golang110, golang111 or golang112
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -07009 # depending on what version is needed by the project
10 # default is golang110
11 #
Kiranf5e41fc2018-02-09 15:34:47 -080012 # Required Variables:
13 # branch: git branch (eg. stable/lithium or master)
Bartek Grzybowskic745ca62020-02-12 15:44:42 +010014 #
15 # Optional Variables:
16 # script: build script to execute
17 # pattern: ant file-path pattern relative to the workspace used to
18 # trigger the job
Kiranf5e41fc2018-02-09 15:34:47 -080019
20 name: '{project-name}-{stream}-verify-golang'
21 path: '$WORKSPACE'
Bartek Grzybowskic745ca62020-02-12 15:44:42 +010022 pattern: '**'
23 script: ''
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070024 golangver: 'golang110'
Kiranf5e41fc2018-02-09 15:34:47 -080025
26 project-type: freestyle
27 concurrent: true
28 node: '{build-node}'
29
30 properties:
31 - infra-properties:
32 build-days-to-keep: '{build-days-to-keep}'
33
34 parameters:
35 - infra-parameters:
36 project: '{project}'
37 branch: '{branch}'
38 refspec: 'refs/heads/{branch}'
39 artifacts: '{archive-artifacts}'
40
41 scm:
42 - gerrit-trigger-scm:
43 refspec: '$GERRIT_REFSPEC'
44 choosing-strategy: 'gerrit'
45 submodule-recursive: '{submodule-recursive}'
46
47 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070048 - '{golangver}'
Kiranf5e41fc2018-02-09 15:34:47 -080049 - infra-wrappers:
50 build-timeout: '{build-timeout}'
51
52 triggers:
53 - gerrit-trigger-patch-submitted:
54 server: '{server-name}'
55 project: '{project}'
56 branch: '{branch}'
Bartek Grzybowskic745ca62020-02-12 15:44:42 +010057 files: '{pattern}'
Kiranf5e41fc2018-02-09 15:34:47 -080058
59 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070060 - lf-infra-pre-build
Kiranf5e41fc2018-02-09 15:34:47 -080061 - provide-maven-settings:
62 global-settings-file: 'global-settings'
63 settings-file: '{mvn-settings}'
64 - shell: |
65 #!/bin/bash
Kiranf5e41fc2018-02-09 15:34:47 -080066 cd $WORKSPACE/{path}
67 make build
Bartek Grzybowskic745ca62020-02-12 15:44:42 +010068 - shell: '{script}'
Kiranf5e41fc2018-02-09 15:34:47 -080069
70 publishers:
71 - infra-shiplogs:
72 maven-version: '{maven-version}'
73
74- job-template:
Bartek Grzybowskiad114ad2020-03-24 15:48:42 +010075 # Job template for Golang verify jobs with subproject support
76
77 <<: *verify_golang_bolierplate
78 name: '{project-name}-{stream}-{subproject}-verify-golang'
79
80- job-template:
Kiranf5e41fc2018-02-09 15:34:47 -080081 # Job template for Golang merge jobs
82 #
83 # The purpose of this job template is to run:
84 # 1. make deploy
85 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070086 # golangver can be set to golang110 or golang111
87 # depending on what version is needed by the project
88 # default is golang110
89 #
Kiranf5e41fc2018-02-09 15:34:47 -080090 # Required Variables:
91 # branch: git branch (eg. stable/lithium or master)
92
93 name: '{project-name}-{stream}-merge-golang'
94 path: $WORKSPACE
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070095 golangver: 'golang110'
Kiranf5e41fc2018-02-09 15:34:47 -080096
97 project-type: freestyle
98 node: '{build-node}'
99
100 properties:
101 - infra-properties:
102 build-days-to-keep: '{build-days-to-keep}'
103
104 parameters:
105 - infra-parameters:
106 project: '{project}'
107 branch: '{branch}'
108 refspec: 'refs/heads/{branch}'
109 artifacts: '{archive-artifacts}'
110 - maven-exec:
111 maven-version: '{maven-version}'
112
113 scm:
114 - gerrit-trigger-scm:
115 refspec: ''
116 choosing-strategy: 'default'
117 submodule-recursive: '{submodule-recursive}'
118
119 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700120 - '{golangver}'
Kiranf5e41fc2018-02-09 15:34:47 -0800121 - infra-wrappers:
122 build-timeout: '{build-timeout}'
123
124 triggers:
125 - gerrit-trigger-patch-merged:
126 server: '{server-name}'
127 project: '{project}'
128 branch: '{branch}'
129 files: '**'
130
131 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700132 - lf-infra-pre-build
Kiranf5e41fc2018-02-09 15:34:47 -0800133 - provide-maven-settings:
134 global-settings-file: 'global-settings'
135 settings-file: '{mvn-settings}'
136 - shell: |
137 #!/bin/bash
Kiranf5e41fc2018-02-09 15:34:47 -0800138 cd $WORKSPACE/{path}
139 make deploy
140
141 publishers:
142 - infra-shiplogs:
143 maven-version: '{maven-version}'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700144
145- job-template:
146 # Job template for building & pushing docker images
147 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700148 # golangver can be set to golang110 or golang111
149 # depending on what version is needed by the project
150 # default is golang110
151 #
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700152 # The purpose of this job template is to run:
153 # 1. login to the docker registry
154 # 2. run a specified shell builder
155 #
156
157 name: '{project-name}-{stream}-docker-golang-shell-daily'
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700158 golangver: 'golang110'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700159 project-type: freestyle
Jessica Wagantall612da802020-03-31 10:44:03 -0700160 node: 'ubuntu1804-docker-8c-8g'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700161 disabled: false
162 properties:
163 - infra-properties:
164 build-days-to-keep: '{build-days-to-keep}'
165
166 parameters:
167 - infra-parameters:
168 project: '{project}'
169 branch: '{branch}'
170 refspec: 'refs/heads/{branch}'
171 artifacts: '{archive-artifacts}'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700172 scm:
173 - gerrit-trigger-scm:
174 refspec: ''
175 choosing-strategy: 'default'
176 submodule-recursive: '{submodule-recursive}'
177
178 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700179 - '{golangver}'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700180 - infra-wrappers:
181 build-timeout: '{build-timeout}'
182
183 triggers:
184 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700185 - timed: '@daily'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700186 - gerrit-trigger-release-manually:
187 server: '{server-name}'
188 project: '{project}'
189 branch: '{branch}'
190
191 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700192 - lf-infra-pre-build
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700193 - provide-maven-settings:
194 global-settings-file: 'global-settings'
195 settings-file: '{mvn-settings}'
196
197 - docker-login
198
199 - shell: '{script}'
200
201 publishers:
202 - infra-shiplogs:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700203 maven-version: '{maven-version}'
Lasse Kaihlavirtafd9769f2020-11-17 18:54:57 +0200204
205- job-template:
206 # Job template PoC for building & pushing snapshot docker images
207 # for CSIT verification
208 #
209 # golangver can be set to golang110 or golang111
210 # depending on what version is needed by the project
211 # default is golang110
212 #
213 # The purpose of this job template is to run:
214 # 1. login to the docker registry
215 # 2. run a specified shell builder
216 #
217
218 name: '{project-name}-{stream}-docker-golang-snapshot-PoC'
219 golangver: 'golang110'
220 project-type: freestyle
221 node: 'ubuntu1804-docker-8c-8g'
222 disabled: '{disabled}'
223 properties:
224 - infra-properties:
225 build-days-to-keep: '{build-days-to-keep}'
226
227 parameters:
228 - infra-parameters:
229 project: '{project}'
230 branch: '{branch}'
231 refspec: 'refs/heads/{branch}'
232 artifacts: '{archive-artifacts}'
233 - integration-unique-docker-tag:
234 unique-docker-tag: ''
235 scm:
236 - gerrit-trigger-scm:
237 refspec: '$GERRIT_REFSPEC'
238 choosing-strategy: 'gerrit'
239 submodule-recursive: '{submodule-recursive}'
240
241 wrappers:
242 - '{golangver}'
243 - infra-wrappers:
244 build-timeout: '{build-timeout}'
245
246 triggers:
247 # 12 AM UTC
248 - timed: '@daily'
249 - gerrit-trigger-release-manually:
250 server: '{server-name}'
251 project: '{project}'
252 branch: '{branch}'
253
254 builders:
255 - lf-infra-pre-build
256 - provide-maven-settings:
257 global-settings-file: 'global-settings'
258 settings-file: '{mvn-settings}'
259
260 - docker-login
261
262 - shell: '{script}'
263
264 publishers:
265 - infra-shiplogs:
266 maven-version: '{maven-version}'