blob: 4d48b871f32fd37a2482eb08b6e09bc6766c91be [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}'
172
173 scm:
174 - gerrit-trigger-scm:
175 refspec: ''
176 choosing-strategy: 'default'
177 submodule-recursive: '{submodule-recursive}'
178
179 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700180 - '{golangver}'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700181 - infra-wrappers:
182 build-timeout: '{build-timeout}'
183
184 triggers:
185 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700186 - timed: '@daily'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700187 - gerrit-trigger-release-manually:
188 server: '{server-name}'
189 project: '{project}'
190 branch: '{branch}'
191
192 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700193 - lf-infra-pre-build
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700194 - provide-maven-settings:
195 global-settings-file: 'global-settings'
196 settings-file: '{mvn-settings}'
197
198 - docker-login
199
200 - shell: '{script}'
201
202 publishers:
203 - infra-shiplogs:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700204 maven-version: '{maven-version}'