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 | |
| 20 | name: '{project-name}-{stream}-verify-golang' |
| 21 | path: '$WORKSPACE' |
Bartek Grzybowski | c745ca6 | 2020-02-12 15:44:42 +0100 | [diff] [blame] | 22 | pattern: '**' |
| 23 | script: '' |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 24 | golangver: 'golang110' |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 25 | |
| 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 Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 48 | - '{golangver}' |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 49 | - 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 Grzybowski | c745ca6 | 2020-02-12 15:44:42 +0100 | [diff] [blame] | 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: |
| 62 | global-settings-file: 'global-settings' |
| 63 | settings-file: '{mvn-settings}' |
| 64 | - shell: | |
| 65 | #!/bin/bash |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 66 | cd $WORKSPACE/{path} |
| 67 | make build |
Bartek Grzybowski | c745ca6 | 2020-02-12 15:44:42 +0100 | [diff] [blame] | 68 | - shell: '{script}' |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 69 | |
| 70 | publishers: |
| 71 | - infra-shiplogs: |
| 72 | maven-version: '{maven-version}' |
| 73 | |
| 74 | - job-template: |
Bartek Grzybowski | ad114ad | 2020-03-24 15:48:42 +0100 | [diff] [blame] | 75 | # 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: |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 81 | # Job template for Golang merge jobs |
| 82 | # |
| 83 | # The purpose of this job template is to run: |
| 84 | # 1. make deploy |
| 85 | # |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 86 | # golangver can be set to golang110 or golang111 |
| 87 | # depending on what version is needed by the project |
| 88 | # default is golang110 |
| 89 | # |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 90 | # Required Variables: |
| 91 | # branch: git branch (eg. stable/lithium or master) |
| 92 | |
| 93 | name: '{project-name}-{stream}-merge-golang' |
| 94 | path: $WORKSPACE |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 95 | golangver: 'golang110' |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 96 | |
| 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 Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 120 | - '{golangver}' |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 121 | - 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 Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 132 | - lf-infra-pre-build |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 133 | - provide-maven-settings: |
| 134 | global-settings-file: 'global-settings' |
| 135 | settings-file: '{mvn-settings}' |
| 136 | - shell: | |
| 137 | #!/bin/bash |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 138 | cd $WORKSPACE/{path} |
| 139 | make deploy |
| 140 | |
| 141 | publishers: |
| 142 | - infra-shiplogs: |
| 143 | maven-version: '{maven-version}' |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 144 | |
| 145 | - job-template: |
| 146 | # Job template for building & pushing docker images |
| 147 | # |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 148 | # golangver can be set to golang110 or golang111 |
| 149 | # depending on what version is needed by the project |
| 150 | # default is golang110 |
| 151 | # |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 152 | # 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 Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 158 | golangver: 'golang110' |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 159 | project-type: freestyle |
| 160 | node: 'ubuntu1604-docker-8c-8g' |
| 161 | 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 Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 180 | - '{golangver}' |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 181 | - infra-wrappers: |
| 182 | build-timeout: '{build-timeout}' |
| 183 | |
| 184 | triggers: |
| 185 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 186 | - timed: '@daily' |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 187 | - gerrit-trigger-release-manually: |
| 188 | server: '{server-name}' |
| 189 | project: '{project}' |
| 190 | branch: '{branch}' |
| 191 | |
| 192 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 193 | - lf-infra-pre-build |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 194 | - 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 Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 204 | maven-version: '{maven-version}' |