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