Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 1 | --- |
| 2 | # vim: sw=2 ts=2 sts=2 et : |
| 3 | |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 4 | - job-template: |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 5 | # Job template for merging a submission. triggered on |
| 6 | # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then |
| 7 | # run script |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 8 | # Required Variables: |
| 9 | # branch: git branch |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 10 | # script: build script to execute |
| 11 | # mvn-settings: settings file for this specific job |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 12 | # mvn-goals: space separated list of maven build goals (--version |
| 13 | # for noop, clean deploy for deploy [snapshot]) |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 14 | name: '{project-name}-{stream}-merge-scm-mvn-script' |
| 15 | |
| 16 | project-type: freestyle |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 17 | node: 'ubuntu1604-docker-8c-8g' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 18 | |
| 19 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 20 | - infra-properties: |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 21 | build-days-to-keep: '{build-days-to-keep}' |
| 22 | |
| 23 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 24 | - infra-parameters: |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 25 | project: '{project}' |
| 26 | branch: '{branch}' |
| 27 | refspec: 'refs/heads/{branch}' |
| 28 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | ab9451c | 2017-02-20 14:57:07 -0800 | [diff] [blame] | 29 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 30 | maven-version: '{maven-version}' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 31 | |
| 32 | scm: |
| 33 | - gerrit-trigger-scm: |
| 34 | refspec: '' |
| 35 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 36 | submodule-recursive: '{submodule-recursive}' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 37 | |
| 38 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 39 | - infra-wrappers: |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 40 | build-timeout: '{build-timeout}' |
| 41 | |
| 42 | triggers: |
| 43 | - gerrit-trigger-patch-merged: |
| 44 | server: '{server-name}' |
| 45 | project: '{project}' |
| 46 | branch: '{branch}' |
| 47 | files: '**' |
| 48 | |
| 49 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 50 | - lf-infra-pre-build |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 51 | - provide-maven-settings: |
| 52 | global-settings-file: 'global-settings' |
| 53 | settings-file: '{mvn-settings}' |
| 54 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 55 | maven-version: '{maven-version}' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 56 | goals: '{mvn-goals}' |
| 57 | settings: '{mvn-settings}' |
| 58 | settings-type: cfp |
| 59 | global-settings: 'global-settings' |
| 60 | global-settings-type: cfp |
| 61 | - docker-login |
| 62 | - shell: '{script}' |
| 63 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 64 | publishers: |
| 65 | - infra-shiplogs: |
| 66 | maven-version: '{maven-version}' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 67 | |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 68 | |
| 69 | - job-template: |
| 70 | # Job template for 2 scm and script trigger |
| 71 | # |
| 72 | # Required Variables: |
| 73 | # branch: git branch |
| 74 | # build-node: what build node to run on |
| 75 | # script: build script to execute |
| 76 | # extra-project: extra gerrit project to checkout |
| 77 | # extra-refspec: refspec for the extra project |
| 78 | # extra-branch: branch to checkout for the extra project |
| 79 | # checkout-dir: directory to checkout the extra project to |
| 80 | # DO NOT SET THIS TO anything that translates to |
| 81 | # $WORKSPACE as it will destroy the initial |
| 82 | # project checkout |
| 83 | |
Andrew Grimberg | ec9a1bf | 2017-02-16 09:56:57 -0800 | [diff] [blame] | 84 | name: '{project-name}-{stream}-two-scm-verify-script' |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 85 | |
| 86 | project-type: freestyle |
| 87 | concurrent: true |
| 88 | node: '{build-node}' |
| 89 | |
| 90 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 91 | - infra-properties: |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 92 | build-days-to-keep: '{build-days-to-keep}' |
| 93 | |
| 94 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 95 | - infra-parameters: |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 96 | project: '{project}' |
| 97 | branch: '{branch}' |
| 98 | refspec: 'refs/heads/{branch}' |
| 99 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | ab9451c | 2017-02-20 14:57:07 -0800 | [diff] [blame] | 100 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 101 | maven-version: '{maven-version}' |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 102 | |
| 103 | scm: |
| 104 | - gerrit-trigger-scm: |
| 105 | refspec: '$GERRIT_REFSPEC' |
| 106 | choosing-strategy: 'gerrit' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 107 | submodule-recursive: '{submodule-recursive}' |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 108 | - git-extra-project: |
| 109 | project: '{extra-project}' |
| 110 | refspec: '{extra-refspec}' |
| 111 | branch: '{extra-branch}' |
| 112 | checkout-dir: '{checkout-dir}' |
| 113 | |
| 114 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 115 | - infra-wrappers: |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 116 | build-timeout: '{build-timeout}' |
| 117 | |
| 118 | triggers: |
| 119 | - gerrit-trigger-patch-submitted: |
| 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 |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 127 | - provide-maven-settings: |
| 128 | global-settings-file: 'global-settings' |
| 129 | settings-file: '{mvn-settings}' |
| 130 | # make sure maven gets installed / setup |
| 131 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 132 | maven-version: '{maven-version}' |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 133 | goals: '--version' |
| 134 | settings: '{mvn-settings}' |
| 135 | settings-type: cfp |
| 136 | global-settings: 'global-settings' |
| 137 | global-settings-type: cfp |
| 138 | - shell: '{script}' |
| 139 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 140 | publishers: |
| 141 | - infra-shiplogs: |
| 142 | maven-version: '{maven-version}' |
talasila | 91a608b | 2017-02-16 12:46:32 -0500 | [diff] [blame] | 143 | |
| 144 | |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 145 | |
| 146 | # vim: sw=2 ts=2 sts=2 et : |
| 147 | |
| 148 | - job-template: |
Christopher Lott (cl778h) | 6b6ae12 | 2017-10-25 16:51:02 -0400 | [diff] [blame] | 149 | # Job template for two scm and script trigger - for docker merge |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 150 | # |
| 151 | # Required Variables: |
| 152 | # branch: git branch |
| 153 | # build-node: what build node to run on |
| 154 | # script: build script to execute |
| 155 | |
Christopher Lott (cl778h) | 6b6ae12 | 2017-10-25 16:51:02 -0400 | [diff] [blame] | 156 | name: '{project-name}-{stream}-two-scm-merge-docker-script' |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 157 | |
| 158 | project-type: freestyle |
| 159 | concurrent: true |
| 160 | node: '{build-node}' |
| 161 | |
| 162 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 163 | - infra-properties: |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 164 | build-days-to-keep: '{build-days-to-keep}' |
| 165 | |
| 166 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 167 | - infra-parameters: |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 168 | project: '{project}' |
| 169 | branch: '{branch}' |
| 170 | refspec: 'refs/heads/{branch}' |
| 171 | artifacts: '{archive-artifacts}' |
| 172 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 173 | maven-version: '{maven-version}' |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 174 | |
| 175 | scm: |
| 176 | - gerrit-trigger-scm: |
| 177 | refspec: '' |
| 178 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 179 | submodule-recursive: '{submodule-recursive}' |
talasila | 596787c | 2017-02-19 20:47:56 -0500 | [diff] [blame] | 180 | - git-extra-project: |
Christopher Lott (cl778h) | 6b6ae12 | 2017-10-25 16:51:02 -0400 | [diff] [blame] | 181 | project: '{extra-project}' |
| 182 | refspec: '{extra-refspec}' |
| 183 | branch: '{extra-branch}' |
| 184 | checkout-dir: '{checkout-dir}' |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 185 | |
| 186 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 187 | - infra-wrappers: |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 188 | build-timeout: '{build-timeout}' |
| 189 | |
| 190 | triggers: |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 191 | - gerrit-trigger-patch-merged: |
| 192 | server: '{server-name}' |
| 193 | project: '{project}' |
| 194 | branch: '{branch}' |
| 195 | files: '**' |
| 196 | |
| 197 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 198 | - lf-infra-pre-build |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 199 | - provide-maven-settings: |
| 200 | global-settings-file: 'global-settings' |
| 201 | settings-file: '{mvn-settings}' |
| 202 | - docker-login |
| 203 | # make sure maven gets installed / setup |
| 204 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 205 | maven-version: '{maven-version}' |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 206 | goals: '--version' |
| 207 | settings: '{mvn-settings}' |
| 208 | settings-type: cfp |
| 209 | global-settings: 'global-settings' |
| 210 | global-settings-type: cfp |
| 211 | - shell: '{script}' |
| 212 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 213 | publishers: |
| 214 | - infra-shiplogs: |
| 215 | maven-version: '{maven-version}' |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 216 | |
| 217 | - job-template: |
Christopher Lott (cl778h) | 6b6ae12 | 2017-10-25 16:51:02 -0400 | [diff] [blame] | 218 | # Job template for two scm and script trigger - for docker daily release |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 219 | # |
| 220 | # Required Variables: |
| 221 | # branch: git branch |
| 222 | # build-node: what build node to run on |
| 223 | # script: build script to execute |
| 224 | |
Christopher Lott (cl778h) | 6b6ae12 | 2017-10-25 16:51:02 -0400 | [diff] [blame] | 225 | name: '{project-name}-{stream}-two-scm-release-docker-script-manual' |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 226 | |
| 227 | project-type: freestyle |
| 228 | concurrent: true |
| 229 | node: '{build-node}' |
| 230 | |
| 231 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 232 | - infra-properties: |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 233 | build-days-to-keep: '{build-days-to-keep}' |
| 234 | |
| 235 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 236 | - infra-parameters: |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 237 | project: '{project}' |
| 238 | branch: '{branch}' |
| 239 | refspec: 'refs/heads/{branch}' |
| 240 | artifacts: '{archive-artifacts}' |
| 241 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 242 | maven-version: '{maven-version}' |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 243 | |
| 244 | scm: |
| 245 | - gerrit-trigger-scm: |
| 246 | refspec: '' |
| 247 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 248 | submodule-recursive: '{submodule-recursive}' |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 249 | - git-extra-project: |
Christopher Lott (cl778h) | 6b6ae12 | 2017-10-25 16:51:02 -0400 | [diff] [blame] | 250 | project: '{extra-project}' |
| 251 | refspec: '{extra-refspec}' |
| 252 | branch: '{extra-branch}' |
| 253 | checkout-dir: '{checkout-dir}' |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 254 | |
| 255 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 256 | - infra-wrappers: |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 257 | build-timeout: '{build-timeout}' |
| 258 | |
| 259 | triggers: |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 260 | - gerrit-trigger-release-manually: |
| 261 | server: '{server-name}' |
| 262 | project: '{project}' |
| 263 | branch: '{branch}' |
| 264 | |
| 265 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 266 | - lf-infra-pre-build |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 267 | - provide-maven-settings: |
| 268 | global-settings-file: 'global-settings' |
| 269 | settings-file: '{mvn-settings}' |
| 270 | - docker-login |
| 271 | # make sure maven gets installed / setup |
| 272 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 273 | maven-version: '{maven-version}' |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 274 | goals: '--version' |
| 275 | settings: '{mvn-settings}' |
| 276 | settings-type: cfp |
| 277 | global-settings: 'global-settings' |
| 278 | global-settings-type: cfp |
| 279 | - shell: '{script}' |
| 280 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 281 | publishers: |
| 282 | - infra-shiplogs: |
| 283 | maven-version: '{maven-version}' |
JulienBe | a247e9f | 2017-03-08 13:07:21 -0800 | [diff] [blame] | 284 | |
| 285 | - job-template: |
| 286 | # 1. PULL the desired image |
| 287 | # 2. TAG it to the desired release name |
| 288 | # 3. PUSH the newly tagged image on release repo |
| 289 | |
| 290 | name: '{project-name}-docker-image-blessing' |
| 291 | |
| 292 | project-type: freestyle |
| 293 | concurrent: true |
Jeremy Phelps | 5eb267a | 2017-03-14 10:53:46 -0500 | [diff] [blame] | 294 | node: 'ubuntu1604-docker-8c-8g' |
JulienBe | a247e9f | 2017-03-08 13:07:21 -0800 | [diff] [blame] | 295 | |
| 296 | parameters: |
| 297 | - string: |
JulienBe | d45ff95 | 2017-03-28 02:54:51 -0700 | [diff] [blame] | 298 | name: X |
| 299 | description: "x VERSION of the STAGING image to bless into this RELEASE VERSION |
| 300 | Example : 1" |
JulienBe | a247e9f | 2017-03-08 13:07:21 -0800 | [diff] [blame] | 301 | - string: |
JulienBe | d45ff95 | 2017-03-28 02:54:51 -0700 | [diff] [blame] | 302 | name: Y |
| 303 | description: "y VERSION of the STAGING image to bless into this RELEASE VERSION |
| 304 | Example : 2" |
| 305 | - string: |
| 306 | name: Z |
| 307 | description: "z VERSION of the RELEASE VERSION |
| 308 | Example : 3" |
JulienBe | a247e9f | 2017-03-08 13:07:21 -0800 | [diff] [blame] | 309 | - string: |
| 310 | name: PROJECT |
| 311 | default: '{project}' |
| 312 | |
| 313 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 314 | - infra-properties: |
JulienBe | a247e9f | 2017-03-08 13:07:21 -0800 | [diff] [blame] | 315 | build-days-to-keep: '{build-days-to-keep}' |
| 316 | |
| 317 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 318 | - infra-wrappers: |
JulienBe | a247e9f | 2017-03-08 13:07:21 -0800 | [diff] [blame] | 319 | build-timeout: '{build-timeout}' |
| 320 | |
| 321 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 322 | - lf-infra-pre-build |
JulienBe | a247e9f | 2017-03-08 13:07:21 -0800 | [diff] [blame] | 323 | - provide-maven-settings: |
| 324 | global-settings-file: 'global-settings' |
| 325 | settings-file: '{mvn-settings}' |
| 326 | - docker-login |
Jeremy Phelps | 5eb267a | 2017-03-14 10:53:46 -0500 | [diff] [blame] | 327 | - shell: !include-raw: include-docker-blessing.sh |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 328 | |
| 329 | publishers: |
| 330 | - infra-shiplogs: |
| 331 | maven-version: '{maven-version}' |