blob: 6305828d9b8d25f0b4b52fbb3382d59f8d1d2d10 [file] [log] [blame]
Kiranf5e41fc2018-02-09 15:34:47 -08001---
2- job-template:
3 # 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:
75 # Job template for Golang merge jobs
76 #
77 # The purpose of this job template is to run:
78 # 1. make deploy
79 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070080 # golangver can be set to golang110 or golang111
81 # depending on what version is needed by the project
82 # default is golang110
83 #
Kiranf5e41fc2018-02-09 15:34:47 -080084 # Required Variables:
85 # branch: git branch (eg. stable/lithium or master)
86
87 name: '{project-name}-{stream}-merge-golang'
88 path: $WORKSPACE
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070089 golangver: 'golang110'
Kiranf5e41fc2018-02-09 15:34:47 -080090
91 project-type: freestyle
92 node: '{build-node}'
93
94 properties:
95 - infra-properties:
96 build-days-to-keep: '{build-days-to-keep}'
97
98 parameters:
99 - infra-parameters:
100 project: '{project}'
101 branch: '{branch}'
102 refspec: 'refs/heads/{branch}'
103 artifacts: '{archive-artifacts}'
104 - maven-exec:
105 maven-version: '{maven-version}'
106
107 scm:
108 - gerrit-trigger-scm:
109 refspec: ''
110 choosing-strategy: 'default'
111 submodule-recursive: '{submodule-recursive}'
112
113 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700114 - '{golangver}'
Kiranf5e41fc2018-02-09 15:34:47 -0800115 - infra-wrappers:
116 build-timeout: '{build-timeout}'
117
118 triggers:
119 - gerrit-trigger-patch-merged:
120 server: '{server-name}'
121 project: '{project}'
122 branch: '{branch}'
123 files: '**'
124
125 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700126 - lf-infra-pre-build
Kiranf5e41fc2018-02-09 15:34:47 -0800127 - provide-maven-settings:
128 global-settings-file: 'global-settings'
129 settings-file: '{mvn-settings}'
130 - shell: |
131 #!/bin/bash
Kiranf5e41fc2018-02-09 15:34:47 -0800132 cd $WORKSPACE/{path}
133 make deploy
134
135 publishers:
136 - infra-shiplogs:
137 maven-version: '{maven-version}'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700138
139- job-template:
140 # Job template for building & pushing docker images
141 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700142 # golangver can be set to golang110 or golang111
143 # depending on what version is needed by the project
144 # default is golang110
145 #
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700146 # The purpose of this job template is to run:
147 # 1. login to the docker registry
148 # 2. run a specified shell builder
149 #
150
151 name: '{project-name}-{stream}-docker-golang-shell-daily'
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700152 golangver: 'golang110'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700153 project-type: freestyle
154 node: 'ubuntu1604-docker-8c-8g'
155 disabled: false
156 properties:
157 - infra-properties:
158 build-days-to-keep: '{build-days-to-keep}'
159
160 parameters:
161 - infra-parameters:
162 project: '{project}'
163 branch: '{branch}'
164 refspec: 'refs/heads/{branch}'
165 artifacts: '{archive-artifacts}'
166
167 scm:
168 - gerrit-trigger-scm:
169 refspec: ''
170 choosing-strategy: 'default'
171 submodule-recursive: '{submodule-recursive}'
172
173 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700174 - '{golangver}'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700175 - infra-wrappers:
176 build-timeout: '{build-timeout}'
177
178 triggers:
179 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700180 - timed: '@daily'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700181 - gerrit-trigger-release-manually:
182 server: '{server-name}'
183 project: '{project}'
184 branch: '{branch}'
185
186 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700187 - lf-infra-pre-build
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700188 - provide-maven-settings:
189 global-settings-file: 'global-settings'
190 settings-file: '{mvn-settings}'
191
192 - docker-login
193
194 - shell: '{script}'
195
196 publishers:
197 - infra-shiplogs:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700198 maven-version: '{maven-version}'