Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 1 | --- |
| 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 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: |
| 75 | # Job template for Golang merge jobs |
| 76 | # |
| 77 | # The purpose of this job template is to run: |
| 78 | # 1. make deploy |
| 79 | # |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 80 | # golangver can be set to golang110 or golang111 |
| 81 | # depending on what version is needed by the project |
| 82 | # default is golang110 |
| 83 | # |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 84 | # Required Variables: |
| 85 | # branch: git branch (eg. stable/lithium or master) |
| 86 | |
| 87 | name: '{project-name}-{stream}-merge-golang' |
| 88 | path: $WORKSPACE |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 89 | golangver: 'golang110' |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 90 | |
| 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 Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 114 | - '{golangver}' |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 115 | - 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 Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 126 | - lf-infra-pre-build |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 127 | - provide-maven-settings: |
| 128 | global-settings-file: 'global-settings' |
| 129 | settings-file: '{mvn-settings}' |
| 130 | - shell: | |
| 131 | #!/bin/bash |
Kiran | f5e41fc | 2018-02-09 15:34:47 -0800 | [diff] [blame] | 132 | cd $WORKSPACE/{path} |
| 133 | make deploy |
| 134 | |
| 135 | publishers: |
| 136 | - infra-shiplogs: |
| 137 | maven-version: '{maven-version}' |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 138 | |
| 139 | - job-template: |
| 140 | # Job template for building & pushing docker images |
| 141 | # |
Kiran Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 142 | # golangver can be set to golang110 or golang111 |
| 143 | # depending on what version is needed by the project |
| 144 | # default is golang110 |
| 145 | # |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 146 | # 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 Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 152 | golangver: 'golang110' |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 153 | 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 Kamineni | df6e71f | 2018-10-24 12:16:13 -0700 | [diff] [blame] | 174 | - '{golangver}' |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 175 | - infra-wrappers: |
| 176 | build-timeout: '{build-timeout}' |
| 177 | |
| 178 | triggers: |
| 179 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 180 | - timed: '@daily' |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 181 | - gerrit-trigger-release-manually: |
| 182 | server: '{server-name}' |
| 183 | project: '{project}' |
| 184 | branch: '{branch}' |
| 185 | |
| 186 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 187 | - lf-infra-pre-build |
Kiran Kamineni | 129b92b | 2018-03-15 16:09:02 -0700 | [diff] [blame] | 188 | - 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 Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 198 | maven-version: '{maven-version}' |