blob: 29b19d9cbd2a66155cb65a87bfd6f6dc8d4c33cb [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
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070020 name: "{project-name}-{stream}-verify-golang"
21 path: "$WORKSPACE"
22 pattern: "**"
23 script: ""
24 golangver: "golang110"
Kiranf5e41fc2018-02-09 15:34:47 -080025
26 project-type: freestyle
27 concurrent: true
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070028 node: "{build-node}"
Kiranf5e41fc2018-02-09 15:34:47 -080029
30 properties:
31 - infra-properties:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070032 build-days-to-keep: "{build-days-to-keep}"
Kiranf5e41fc2018-02-09 15:34:47 -080033
34 parameters:
35 - infra-parameters:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070036 project: "{project}"
37 branch: "{branch}"
38 refspec: "refs/heads/{branch}"
39 artifacts: "{archive-artifacts}"
Kiranf5e41fc2018-02-09 15:34:47 -080040
41 scm:
42 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070043 refspec: "$GERRIT_REFSPEC"
44 choosing-strategy: "gerrit"
45 submodule-recursive: "{submodule-recursive}"
Kiranf5e41fc2018-02-09 15:34:47 -080046
47 wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070048 - "{golangver}"
Kiranf5e41fc2018-02-09 15:34:47 -080049 - infra-wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070050 build-timeout: "{build-timeout}"
Kiranf5e41fc2018-02-09 15:34:47 -080051
52 triggers:
53 - gerrit-trigger-patch-submitted:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070054 server: "{server-name}"
55 project: "{project}"
56 branch: "{branch}"
57 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:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070062 global-settings-file: "global-settings"
63 settings-file: "{mvn-settings}"
Kiranf5e41fc2018-02-09 15:34:47 -080064 - shell: |
65 #!/bin/bash
Kiranf5e41fc2018-02-09 15:34:47 -080066 cd $WORKSPACE/{path}
67 make build
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070068 - shell: "{script}"
Kiranf5e41fc2018-02-09 15:34:47 -080069
70 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -080071 - lf-infra-publish
Kiranf5e41fc2018-02-09 15:34:47 -080072
73- job-template:
Bartek Grzybowskiad114ad2020-03-24 15:48:42 +010074 # Job template for Golang verify jobs with subproject support
75
76 <<: *verify_golang_bolierplate
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070077 name: "{project-name}-{stream}-{subproject}-verify-golang"
Bartek Grzybowskiad114ad2020-03-24 15:48:42 +010078
79- job-template:
Kiranf5e41fc2018-02-09 15:34:47 -080080 # Job template for Golang merge jobs
81 #
82 # The purpose of this job template is to run:
83 # 1. make deploy
84 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -070085 # golangver can be set to golang110 or golang111
86 # depending on what version is needed by the project
87 # default is golang110
88 #
Kiranf5e41fc2018-02-09 15:34:47 -080089 # Required Variables:
90 # branch: git branch (eg. stable/lithium or master)
91
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070092 name: "{project-name}-{stream}-merge-golang"
Kiranf5e41fc2018-02-09 15:34:47 -080093 path: $WORKSPACE
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070094 golangver: "golang110"
Kiranf5e41fc2018-02-09 15:34:47 -080095
96 project-type: freestyle
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070097 node: "{build-node}"
Kiranf5e41fc2018-02-09 15:34:47 -080098
99 properties:
100 - infra-properties:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700101 build-days-to-keep: "{build-days-to-keep}"
Kiranf5e41fc2018-02-09 15:34:47 -0800102
103 parameters:
104 - infra-parameters:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700105 project: "{project}"
106 branch: "{branch}"
107 refspec: "refs/heads/{branch}"
108 artifacts: "{archive-artifacts}"
Kiranf5e41fc2018-02-09 15:34:47 -0800109 - maven-exec:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700110 maven-version: "{maven-version}"
Kiranf5e41fc2018-02-09 15:34:47 -0800111
112 scm:
113 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700114 refspec: ""
115 choosing-strategy: "default"
116 submodule-recursive: "{submodule-recursive}"
Kiranf5e41fc2018-02-09 15:34:47 -0800117
118 wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700119 - "{golangver}"
Kiranf5e41fc2018-02-09 15:34:47 -0800120 - infra-wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700121 build-timeout: "{build-timeout}"
Kiranf5e41fc2018-02-09 15:34:47 -0800122
123 triggers:
124 - gerrit-trigger-patch-merged:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700125 server: "{server-name}"
126 project: "{project}"
127 branch: "{branch}"
128 files: "**"
Kiranf5e41fc2018-02-09 15:34:47 -0800129
130 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700131 - lf-infra-pre-build
Kiranf5e41fc2018-02-09 15:34:47 -0800132 - provide-maven-settings:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700133 global-settings-file: "global-settings"
134 settings-file: "{mvn-settings}"
Kiranf5e41fc2018-02-09 15:34:47 -0800135 - shell: |
136 #!/bin/bash
Kiranf5e41fc2018-02-09 15:34:47 -0800137 cd $WORKSPACE/{path}
138 make deploy
139
140 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800141 - lf-infra-publish
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700142
143- job-template:
144 # Job template for building & pushing docker images
145 #
Kiran Kaminenidf6e71f2018-10-24 12:16:13 -0700146 # golangver can be set to golang110 or golang111
147 # depending on what version is needed by the project
148 # default is golang110
149 #
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700150 # The purpose of this job template is to run:
151 # 1. login to the docker registry
152 # 2. run a specified shell builder
153 #
154
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700155 name: "{project-name}-{stream}-docker-golang-shell-daily"
156 golangver: "golang110"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700157 project-type: freestyle
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700158 node: "ubuntu1804-docker-8c-8g"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700159 disabled: false
160 properties:
161 - infra-properties:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700162 build-days-to-keep: "{build-days-to-keep}"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700163
164 parameters:
165 - infra-parameters:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700166 project: "{project}"
167 branch: "{branch}"
168 refspec: "refs/heads/{branch}"
169 artifacts: "{archive-artifacts}"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700170 scm:
171 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700172 refspec: ""
173 choosing-strategy: "default"
174 submodule-recursive: "{submodule-recursive}"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700175
176 wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700177 - "{golangver}"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700178 - infra-wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700179 build-timeout: "{build-timeout}"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700180
181 triggers:
182 # 12 AM UTC
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700183 - gerrit-trigger-release-manually:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700184 server: "{server-name}"
185 project: "{project}"
186 branch: "{branch}"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700187
188 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700189 - lf-infra-pre-build
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700190 - provide-maven-settings:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700191 global-settings-file: "global-settings"
192 settings-file: "{mvn-settings}"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700193
194 - docker-login
195
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700196 - shell: "{script}"
Kiran Kamineni129b92b2018-03-15 16:09:02 -0700197
198 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800199 - lf-infra-publish