blob: ba2f74e2e077b5dd63416c0613ff822aecb1703b [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 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -07008 # golangver can be set to golang110 or golang111
9 # 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)
14
15 name: '{project-name}-{stream}-verify-golang'
16 path: '$WORKSPACE'
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070017 golangver: 'golang110'
Kiranf5e41fc2018-02-09 15:34:47 -080018
19 project-type: freestyle
20 concurrent: true
21 node: '{build-node}'
22
23 properties:
24 - infra-properties:
25 build-days-to-keep: '{build-days-to-keep}'
26
27 parameters:
28 - infra-parameters:
29 project: '{project}'
30 branch: '{branch}'
31 refspec: 'refs/heads/{branch}'
32 artifacts: '{archive-artifacts}'
33
34 scm:
35 - gerrit-trigger-scm:
36 refspec: '$GERRIT_REFSPEC'
37 choosing-strategy: 'gerrit'
38 submodule-recursive: '{submodule-recursive}'
39
40 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070041 - '{golangver}'
Kiranf5e41fc2018-02-09 15:34:47 -080042 - infra-wrappers:
43 build-timeout: '{build-timeout}'
44
45 triggers:
46 - gerrit-trigger-patch-submitted:
47 server: '{server-name}'
48 project: '{project}'
49 branch: '{branch}'
50 files: '**'
51
52 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070053 - lf-infra-pre-build
Kiranf5e41fc2018-02-09 15:34:47 -080054 - provide-maven-settings:
55 global-settings-file: 'global-settings'
56 settings-file: '{mvn-settings}'
57 - shell: |
58 #!/bin/bash
Kiranf5e41fc2018-02-09 15:34:47 -080059 cd $WORKSPACE/{path}
60 make build
61
62 publishers:
63 - infra-shiplogs:
64 maven-version: '{maven-version}'
65
66- job-template:
67 # Job template for Golang merge jobs
68 #
69 # The purpose of this job template is to run:
70 # 1. make deploy
71 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070072 # golangver can be set to golang110 or golang111
73 # depending on what version is needed by the project
74 # default is golang110
75 #
Kiranf5e41fc2018-02-09 15:34:47 -080076 # Required Variables:
77 # branch: git branch (eg. stable/lithium or master)
78
79 name: '{project-name}-{stream}-merge-golang'
80 path: $WORKSPACE
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070081 golangver: 'golang110'
Kiranf5e41fc2018-02-09 15:34:47 -080082
83 project-type: freestyle
84 node: '{build-node}'
85
86 properties:
87 - infra-properties:
88 build-days-to-keep: '{build-days-to-keep}'
89
90 parameters:
91 - infra-parameters:
92 project: '{project}'
93 branch: '{branch}'
94 refspec: 'refs/heads/{branch}'
95 artifacts: '{archive-artifacts}'
96 - maven-exec:
97 maven-version: '{maven-version}'
98
99 scm:
100 - gerrit-trigger-scm:
101 refspec: ''
102 choosing-strategy: 'default'
103 submodule-recursive: '{submodule-recursive}'
104
105 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700106 - '{golangver}'
Kiranf5e41fc2018-02-09 15:34:47 -0800107 - infra-wrappers:
108 build-timeout: '{build-timeout}'
109
110 triggers:
111 - gerrit-trigger-patch-merged:
112 server: '{server-name}'
113 project: '{project}'
114 branch: '{branch}'
115 files: '**'
116
117 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700118 - lf-infra-pre-build
Kiranf5e41fc2018-02-09 15:34:47 -0800119 - provide-maven-settings:
120 global-settings-file: 'global-settings'
121 settings-file: '{mvn-settings}'
122 - shell: |
123 #!/bin/bash
Kiranf5e41fc2018-02-09 15:34:47 -0800124 cd $WORKSPACE/{path}
125 make deploy
126
127 publishers:
128 - infra-shiplogs:
129 maven-version: '{maven-version}'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700130
131- job-template:
132 # Job template for building & pushing docker images
133 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700134 # golangver can be set to golang110 or golang111
135 # depending on what version is needed by the project
136 # default is golang110
137 #
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700138 # The purpose of this job template is to run:
139 # 1. login to the docker registry
140 # 2. run a specified shell builder
141 #
142
143 name: '{project-name}-{stream}-docker-golang-shell-daily'
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700144 golangver: 'golang110'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700145 project-type: freestyle
146 node: 'ubuntu1604-docker-8c-8g'
147 disabled: false
148 properties:
149 - infra-properties:
150 build-days-to-keep: '{build-days-to-keep}'
151
152 parameters:
153 - infra-parameters:
154 project: '{project}'
155 branch: '{branch}'
156 refspec: 'refs/heads/{branch}'
157 artifacts: '{archive-artifacts}'
158
159 scm:
160 - gerrit-trigger-scm:
161 refspec: ''
162 choosing-strategy: 'default'
163 submodule-recursive: '{submodule-recursive}'
164
165 wrappers:
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700166 - '{golangver}'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700167 - infra-wrappers:
168 build-timeout: '{build-timeout}'
169
170 triggers:
171 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700172 - timed: '@daily'
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700173 - gerrit-trigger-release-manually:
174 server: '{server-name}'
175 project: '{project}'
176 branch: '{branch}'
177
178 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700179 - lf-infra-pre-build
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700180 - provide-maven-settings:
181 global-settings-file: 'global-settings'
182 settings-file: '{mvn-settings}'
183
184 - docker-login
185
186 - shell: '{script}'
187
188 publishers:
189 - infra-shiplogs:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700190 maven-version: '{maven-version}'