Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 1 | --- |
Bartek Grzybowski | ad114ad | 2020-03-24 15:48:42 +0100 | [diff] [blame] | 2 | - job-template: &verify_golang_bolierplate |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 3 | # Job template for Golang verify jobs |
| 4 | # |
| 5 | # The purpose of this job template is to run: |
| 6 | # 1. make build |
| 7 | # |
Bartek Grzybowski | c745ca6 | 2020-02-12 15:44:42 +0100 | [diff] [blame] | 8 | # golangver can be set to golang110, golang111 or golang112 |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 9 | # depending on what version is needed by the project |
| 10 | # default is golang110 |
| 11 | # |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 12 | # Required Variables: |
| 13 | # branch: git branch (eg. stable/lithium or master) |
Bartek Grzybowski | c745ca6 | 2020-02-12 15:44:42 +0100 | [diff] [blame] | 14 | # |
| 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 |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 19 | |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 20 | name: "{project-name}-{stream}-verify-golang" |
| 21 | path: "$WORKSPACE" |
| 22 | pattern: "**" |
| 23 | script: "" |
| 24 | golangver: "golang110" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 25 | |
| 26 | project-type: freestyle |
| 27 | concurrent: true |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 28 | node: "{build-node}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 29 | |
| 30 | properties: |
| 31 | - infra-properties: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 32 | build-days-to-keep: "{build-days-to-keep}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 33 | |
| 34 | parameters: |
| 35 | - infra-parameters: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 36 | project: "{project}" |
| 37 | branch: "{branch}" |
| 38 | refspec: "refs/heads/{branch}" |
| 39 | artifacts: "{archive-artifacts}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 40 | |
| 41 | scm: |
| 42 | - gerrit-trigger-scm: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 43 | refspec: "$GERRIT_REFSPEC" |
| 44 | choosing-strategy: "gerrit" |
| 45 | submodule-recursive: "{submodule-recursive}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 46 | |
| 47 | wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 48 | - "{golangver}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 49 | - infra-wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 50 | build-timeout: "{build-timeout}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 51 | |
| 52 | triggers: |
| 53 | - gerrit-trigger-patch-submitted: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 54 | server: "{server-name}" |
| 55 | project: "{project}" |
| 56 | branch: "{branch}" |
| 57 | files: "{pattern}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 58 | |
| 59 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 60 | - lf-infra-pre-build |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 61 | - provide-maven-settings: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 62 | global-settings-file: "global-settings" |
| 63 | settings-file: "{mvn-settings}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 64 | - shell: | |
| 65 | #!/bin/bash |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 66 | cd $WORKSPACE/{path} |
| 67 | make build |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 68 | - shell: "{script}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 69 | |
| 70 | publishers: |
Jessica Wagantall | 2a6a380 | 2021-01-14 12:19:17 -0800 | [diff] [blame] | 71 | - lf-infra-publish |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 72 | |
| 73 | - job-template: |
Bartek Grzybowski | ad114ad | 2020-03-24 15:48:42 +0100 | [diff] [blame] | 74 | # Job template for Golang verify jobs with subproject support |
| 75 | |
| 76 | <<: *verify_golang_bolierplate |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 77 | name: "{project-name}-{stream}-{subproject}-verify-golang" |
Bartek Grzybowski | ad114ad | 2020-03-24 15:48:42 +0100 | [diff] [blame] | 78 | |
| 79 | - job-template: |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 80 | # Job template for Golang merge jobs |
| 81 | # |
| 82 | # The purpose of this job template is to run: |
| 83 | # 1. make deploy |
| 84 | # |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 85 | # golangver can be set to golang110 or golang111 |
| 86 | # depending on what version is needed by the project |
| 87 | # default is golang110 |
| 88 | # |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 89 | # Required Variables: |
| 90 | # branch: git branch (eg. stable/lithium or master) |
| 91 | |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 92 | name: "{project-name}-{stream}-merge-golang" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 93 | path: $WORKSPACE |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 94 | golangver: "golang110" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 95 | |
| 96 | project-type: freestyle |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 97 | node: "{build-node}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 98 | |
| 99 | properties: |
| 100 | - infra-properties: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 101 | build-days-to-keep: "{build-days-to-keep}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 102 | |
| 103 | parameters: |
| 104 | - infra-parameters: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 105 | project: "{project}" |
| 106 | branch: "{branch}" |
| 107 | refspec: "refs/heads/{branch}" |
| 108 | artifacts: "{archive-artifacts}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 109 | - maven-exec: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 110 | maven-version: "{maven-version}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 111 | |
| 112 | scm: |
| 113 | - gerrit-trigger-scm: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 114 | refspec: "" |
| 115 | choosing-strategy: "default" |
| 116 | submodule-recursive: "{submodule-recursive}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 117 | |
| 118 | wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 119 | - "{golangver}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 120 | - infra-wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 121 | build-timeout: "{build-timeout}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 122 | |
| 123 | triggers: |
| 124 | - gerrit-trigger-patch-merged: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 125 | server: "{server-name}" |
| 126 | project: "{project}" |
| 127 | branch: "{branch}" |
| 128 | files: "**" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 129 | |
| 130 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 131 | - lf-infra-pre-build |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 132 | - provide-maven-settings: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 133 | global-settings-file: "global-settings" |
| 134 | settings-file: "{mvn-settings}" |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 135 | - shell: | |
| 136 | #!/bin/bash |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 137 | cd $WORKSPACE/{path} |
| 138 | make deploy |
| 139 | |
| 140 | publishers: |
Jessica Wagantall | 2a6a380 | 2021-01-14 12:19:17 -0800 | [diff] [blame] | 141 | - lf-infra-publish |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 142 | |
| 143 | - job-template: |
| 144 | # Job template for building & pushing docker images |
| 145 | # |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 146 | # golangver can be set to golang110 or golang111 |
| 147 | # depending on what version is needed by the project |
| 148 | # default is golang110 |
| 149 | # |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 150 | # 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 Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 155 | name: "{project-name}-{stream}-docker-golang-shell-daily" |
| 156 | golangver: "golang110" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 157 | project-type: freestyle |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 158 | node: "ubuntu1804-docker-8c-8g" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 159 | disabled: false |
| 160 | properties: |
| 161 | - infra-properties: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 162 | build-days-to-keep: "{build-days-to-keep}" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 163 | |
| 164 | parameters: |
| 165 | - infra-parameters: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 166 | project: "{project}" |
| 167 | branch: "{branch}" |
| 168 | refspec: "refs/heads/{branch}" |
| 169 | artifacts: "{archive-artifacts}" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 170 | scm: |
| 171 | - gerrit-trigger-scm: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 172 | refspec: "" |
| 173 | choosing-strategy: "default" |
| 174 | submodule-recursive: "{submodule-recursive}" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 175 | |
| 176 | wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 177 | - "{golangver}" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 178 | - infra-wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 179 | build-timeout: "{build-timeout}" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 180 | |
| 181 | triggers: |
| 182 | # 12 AM UTC |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 183 | - timed: "@daily" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 184 | - gerrit-trigger-release-manually: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 185 | server: "{server-name}" |
| 186 | project: "{project}" |
| 187 | branch: "{branch}" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 188 | |
| 189 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 190 | - lf-infra-pre-build |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 191 | - provide-maven-settings: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 192 | global-settings-file: "global-settings" |
| 193 | settings-file: "{mvn-settings}" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 194 | |
| 195 | - docker-login |
| 196 | |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 197 | - shell: "{script}" |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 198 | |
| 199 | publishers: |
Jessica Wagantall | 2a6a380 | 2021-01-14 12:19:17 -0800 | [diff] [blame] | 200 | - lf-infra-publish |