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 | |
| 5 | - job-template: |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 6 | # Job template for verifying a submission. triggered on |
| 7 | # gerrit-trigger-patch-submitted, does scm, mvn with passed in goals, |
| 8 | # then run script |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 9 | # |
| 10 | # Required Variables: |
| 11 | # branch: git branch |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 12 | # script: build script to execute |
| 13 | # mvn-settings: settings file for this specific job |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 14 | # mvn-goals: space separated list of maven build goals (e.g. |
| 15 | # clean, install etc, --version for noop) |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 16 | name: '{project-name}-{stream}-verify-scm-mvn-script' |
| 17 | |
| 18 | project-type: freestyle |
| 19 | concurrent: true |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 20 | node: 'ubuntu1604-docker-8c-8g' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 21 | |
| 22 | properties: |
| 23 | - ecomp-infra-properties: |
| 24 | build-days-to-keep: '{build-days-to-keep}' |
| 25 | |
| 26 | parameters: |
| 27 | - ecomp-infra-parameters: |
| 28 | project: '{project}' |
| 29 | branch: '{branch}' |
| 30 | refspec: 'refs/heads/{branch}' |
| 31 | artifacts: '{archive-artifacts}' |
| 32 | |
| 33 | scm: |
| 34 | - gerrit-trigger-scm: |
| 35 | refspec: '$GERRIT_REFSPEC' |
| 36 | choosing-strategy: 'gerrit' |
| 37 | |
| 38 | wrappers: |
| 39 | - ecomp-infra-wrappers: |
| 40 | build-timeout: '{build-timeout}' |
| 41 | |
| 42 | triggers: |
| 43 | - gerrit-trigger-patch-submitted: |
| 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: |
| 54 | maven-version: 'mvn33' |
| 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 | |
| 63 | |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 64 | - job-template: |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 65 | # Job template for merging a submission. triggered on |
| 66 | # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then |
| 67 | # run script |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 68 | # Required Variables: |
| 69 | # branch: git branch |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 70 | # script: build script to execute |
| 71 | # mvn-settings: settings file for this specific job |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 72 | # mvn-goals: space separated list of maven build goals (--version |
| 73 | # for noop, clean deploy for deploy [snapshot]) |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 74 | name: '{project-name}-{stream}-merge-scm-mvn-script' |
| 75 | |
| 76 | project-type: freestyle |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 77 | node: 'ubuntu1604-docker-8c-8g' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 78 | |
| 79 | properties: |
| 80 | - ecomp-infra-properties: |
| 81 | build-days-to-keep: '{build-days-to-keep}' |
| 82 | |
| 83 | parameters: |
| 84 | - ecomp-infra-parameters: |
| 85 | project: '{project}' |
| 86 | branch: '{branch}' |
| 87 | refspec: 'refs/heads/{branch}' |
| 88 | artifacts: '{archive-artifacts}' |
| 89 | |
| 90 | scm: |
| 91 | - gerrit-trigger-scm: |
| 92 | refspec: '' |
| 93 | choosing-strategy: 'default' |
| 94 | |
| 95 | wrappers: |
| 96 | - ecomp-infra-wrappers: |
| 97 | build-timeout: '{build-timeout}' |
| 98 | |
| 99 | triggers: |
| 100 | - gerrit-trigger-patch-merged: |
| 101 | server: '{server-name}' |
| 102 | project: '{project}' |
| 103 | branch: '{branch}' |
| 104 | files: '**' |
| 105 | |
| 106 | builders: |
| 107 | - provide-maven-settings: |
| 108 | global-settings-file: 'global-settings' |
| 109 | settings-file: '{mvn-settings}' |
| 110 | - maven-target: |
| 111 | maven-version: 'mvn33' |
| 112 | goals: '{mvn-goals}' |
| 113 | settings: '{mvn-settings}' |
| 114 | settings-type: cfp |
| 115 | global-settings: 'global-settings' |
| 116 | global-settings-type: cfp |
| 117 | - docker-login |
| 118 | - shell: '{script}' |
| 119 | |
| 120 | |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 121 | - job-template: |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 122 | # Job template for daily-release a submission. triggered on timer, does |
| 123 | # scm mvn with passed-in goals, then run script |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 124 | # |
| 125 | # Required Variables: |
| 126 | # branch: git branch |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 127 | # script: build script to execute |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 128 | # mvn-goals-versioning: space separated list of maven build goals |
| 129 | # (--version for no op, |
| 130 | # or versions:set versions:update-child-modules versions:commit) |
| 131 | # mvn-goals: space separated list of maven build goals (--version for |
| 132 | # noop, or clean deploy) |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 133 | name: '{project-name}-{stream}-daily-release-scm-mvn-script' |
| 134 | |
| 135 | project-type: freestyle |
| 136 | concurrent: true |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 137 | node: 'ubuntu1604-docker-8c-8g' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 138 | |
| 139 | properties: |
| 140 | - ecomp-infra-properties: |
| 141 | build-days-to-keep: '{build-days-to-keep}' |
| 142 | |
| 143 | parameters: |
| 144 | - ecomp-infra-parameters: |
| 145 | project: '{project}' |
| 146 | branch: '{branch}' |
| 147 | refspec: 'refs/heads/{branch}' |
| 148 | artifacts: '{archive-artifacts}' |
| 149 | |
| 150 | scm: |
| 151 | - gerrit-trigger-scm: |
| 152 | refspec: '' |
| 153 | choosing-strategy: 'default' |
| 154 | |
| 155 | wrappers: |
| 156 | - ecomp-infra-wrappers: |
| 157 | build-timeout: '{build-timeout}' |
| 158 | |
| 159 | triggers: |
| 160 | # 11 AM UTC |
| 161 | - timed: 'H 11 * * *' |
| 162 | |
| 163 | builders: |
| 164 | - provide-maven-settings: |
| 165 | global-settings-file: 'global-settings' |
| 166 | settings-file: '{mvn-settings}' |
| 167 | - inject: |
| 168 | properties-file: version.properties |
| 169 | - maven-target: |
| 170 | maven-version: 'mvn33' |
| 171 | goals: '{mvn-goals-versioning}' |
| 172 | properties: |
| 173 | - 'newVersion=${{release_version}}' |
| 174 | settings: '{mvn-settings}' |
| 175 | settings-type: cfp |
| 176 | global-settings: 'global-settings' |
| 177 | global-settings-type: cfp |
| 178 | |
| 179 | - maven-target: |
| 180 | maven-version: 'mvn33' |
| 181 | goals: '{mvn-goals}' |
| 182 | properties: |
| 183 | - '{maven-deploy-properties}' |
| 184 | settings: '{mvn-settings}' |
| 185 | settings-type: cfp |
| 186 | global-settings: 'global-settings' |
| 187 | global-settings-type: cfp |
| 188 | - docker-login |
| 189 | - shell: '{script}' |
| 190 | |
| 191 | |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 192 | - job-template: |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 193 | # Job template for verifying a submission. triggered on |
| 194 | # gerrit-trigger-patch-submitted, |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 195 | # does scm 2 repos, mvn with passed-in goals, then run script |
| 196 | # |
| 197 | # Required Variables: |
| 198 | # branch: git branch |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 199 | # script: build script to execute |
| 200 | # extra-project: extra gerrit project to checkout |
| 201 | # extra-refspec: refspec for the extra project |
| 202 | # extra-branch: branch to checkout for the extra project |
| 203 | # checkout-dir: directory to checkout the extra project to |
| 204 | # DO NOT SET THIS TO anything that translates to |
| 205 | # $WORKSPACE as it will destroy the initial |
| 206 | # project checkout |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 207 | # mvn-goals: space separated list of maven build goals (e.g. |
| 208 | # clean, install etc, --version for noop) |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 209 | |
| 210 | name: '{project-name}-{stream}-verify-2scm-mvn-script' |
| 211 | |
| 212 | project-type: freestyle |
| 213 | concurrent: true |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 214 | node: 'ubuntu1604-docker-8c-8g' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 215 | |
| 216 | properties: |
| 217 | - ecomp-infra-properties: |
| 218 | build-days-to-keep: '{build-days-to-keep}' |
| 219 | |
| 220 | parameters: |
| 221 | - ecomp-infra-parameters: |
| 222 | project: '{project}' |
| 223 | branch: '{branch}' |
| 224 | refspec: 'refs/heads/{branch}' |
| 225 | artifacts: '{archive-artifacts}' |
| 226 | |
| 227 | scm: |
| 228 | - gerrit-trigger-scm: |
| 229 | refspec: '$GERRIT_REFSPEC' |
| 230 | choosing-strategy: 'gerrit' |
| 231 | - git-extra-project: |
| 232 | project: '{extra-project}' |
| 233 | refspec: '{extra-refspec}' |
| 234 | branch: '{extra-branch}' |
| 235 | checkout-dir: '{checkout-dir}' |
| 236 | |
| 237 | wrappers: |
| 238 | - ecomp-infra-wrappers: |
| 239 | build-timeout: '{build-timeout}' |
| 240 | |
| 241 | triggers: |
| 242 | - gerrit-trigger-patch-submitted: |
| 243 | server: '{server-name}' |
| 244 | project: '{project}' |
| 245 | branch: '{branch}' |
| 246 | files: '**' |
| 247 | |
| 248 | builders: |
| 249 | - provide-maven-settings: |
| 250 | global-settings-file: 'global-settings' |
| 251 | settings-file: '{mvn-settings}' |
| 252 | - maven-target: |
| 253 | maven-version: 'mvn33' |
| 254 | goals: '{mvn-goals}' |
| 255 | settings: '{mvn-settings}' |
| 256 | settings-type: cfp |
| 257 | global-settings: 'global-settings' |
| 258 | global-settings-type: cfp |
| 259 | - docker-login |
| 260 | - shell: '{script}' |
| 261 | |
| 262 | |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 263 | - job-template: |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 264 | # Job template for merged submission. triggered on |
| 265 | # gerrit-trigger-patch-merged,does scm of 2 repos, mvn with passed in |
| 266 | # goals, then run script |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 267 | # |
| 268 | # Required Variables: |
| 269 | # branch: git branch |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 270 | # script: build script to execute |
| 271 | # extra-project: extra gerrit project to checkout |
| 272 | # extra-refspec: refspec for the extra project |
| 273 | # extra-branch: branch to checkout for the extra project |
| 274 | # checkout-dir: directory to checkout the extra project to |
| 275 | # DO NOT SET THIS TO anything that translates to |
| 276 | # $WORKSPACE as it will destroy the initial |
| 277 | # project checkout |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 278 | # mvn-goals: space separated list of maven build goals (--version |
| 279 | # for noop, clean deploy for mvn project) |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 280 | |
| 281 | name: '{project-name}-{stream}-merge-2scm-mvn-script' |
| 282 | |
| 283 | project-type: freestyle |
| 284 | concurrent: true |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 285 | node: 'ubuntu1604-docker-8c-8g' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 286 | |
| 287 | properties: |
| 288 | - ecomp-infra-properties: |
| 289 | build-days-to-keep: '{build-days-to-keep}' |
| 290 | |
| 291 | parameters: |
| 292 | - ecomp-infra-parameters: |
| 293 | project: '{project}' |
| 294 | branch: '{branch}' |
| 295 | refspec: 'refs/heads/{branch}' |
| 296 | artifacts: '{archive-artifacts}' |
| 297 | |
| 298 | scm: |
| 299 | - gerrit-trigger-scm: |
| 300 | refspec: '' |
| 301 | choosing-strategy: 'default' |
| 302 | - git-extra-project: |
| 303 | project: '{extra-project}' |
| 304 | refspec: '{extra-refspec}' |
| 305 | branch: '{extra-branch}' |
| 306 | checkout-dir: '{checkout-dir}' |
| 307 | |
| 308 | wrappers: |
| 309 | - ecomp-infra-wrappers: |
| 310 | build-timeout: '{build-timeout}' |
| 311 | |
| 312 | triggers: |
| 313 | - gerrit-trigger-patch-merged: |
| 314 | server: '{server-name}' |
| 315 | project: '{project}' |
| 316 | branch: '{branch}' |
| 317 | files: '**' |
| 318 | |
| 319 | builders: |
| 320 | - provide-maven-settings: |
| 321 | global-settings-file: 'global-settings' |
| 322 | settings-file: '{mvn-settings}' |
| 323 | - maven-target: |
| 324 | maven-version: 'mvn33' |
| 325 | goals: '{mvn-goals}' |
| 326 | settings: '{mvn-settings}' |
| 327 | settings-type: cfp |
| 328 | global-settings: 'global-settings' |
| 329 | global-settings-type: cfp |
| 330 | - docker-login |
| 331 | - shell: '{script}' |
| 332 | |
| 333 | |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 334 | - job-template: |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 335 | # Job template for merged submission. triggered on |
| 336 | # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals, |
| 337 | # then run script |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 338 | # |
| 339 | # Required Variables: |
| 340 | # branch: git branch |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 341 | # script: build script to execute |
| 342 | # extra-project: extra gerrit project to checkout |
| 343 | # extra-refspec: refspec for the extra project |
| 344 | # extra-branch: branch to checkout for the extra project |
| 345 | # checkout-dir: directory to checkout the extra project to |
| 346 | # DO NOT SET THIS TO anything that translates to |
| 347 | # $WORKSPACE as it will destroy the initial |
| 348 | # project checkout |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 349 | # mvn-goals: space separated list of maven build goals (--version |
| 350 | # for noop, clean deploy for mvn project) |
| 351 | # mvn-goals-versioning: space separated list of maven build goals |
| 352 | # (--version for no op, clean deploy for mvn project) |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 353 | |
| 354 | name: '{project-name}-{stream}-daily-release-2scm-mvn-script' |
| 355 | |
| 356 | project-type: freestyle |
lj1412 | d070484 | 2017-02-18 21:46:11 +0000 | [diff] [blame] | 357 | node: 'ubuntu1604-docker-8c-8g' |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 358 | |
| 359 | properties: |
| 360 | - ecomp-infra-properties: |
| 361 | build-days-to-keep: '{build-days-to-keep}' |
| 362 | |
| 363 | parameters: |
| 364 | - ecomp-infra-parameters: |
| 365 | project: '{project}' |
| 366 | branch: '{branch}' |
| 367 | refspec: 'refs/heads/{branch}' |
| 368 | artifacts: '{archive-artifacts}' |
| 369 | |
| 370 | scm: |
| 371 | - gerrit-trigger-scm: |
| 372 | refspec: '' |
| 373 | choosing-strategy: 'default' |
| 374 | - git-extra-project: |
| 375 | project: '{extra-project}' |
| 376 | refspec: '{extra-refspec}' |
| 377 | branch: '{extra-branch}' |
| 378 | checkout-dir: '{checkout-dir}' |
| 379 | |
| 380 | wrappers: |
| 381 | - ecomp-infra-wrappers: |
| 382 | build-timeout: '{build-timeout}' |
| 383 | |
| 384 | triggers: |
| 385 | - timed: 'H 11 * * *' |
| 386 | |
| 387 | builders: |
| 388 | - provide-maven-settings: |
| 389 | global-settings-file: 'global-settings' |
| 390 | settings-file: '{mvn-settings}' |
| 391 | - inject: |
| 392 | properties-file: version.properties |
| 393 | - maven-target: |
| 394 | maven-version: 'mvn33' |
| 395 | goals: '{mvn-goals-versioning}' |
| 396 | properties: |
| 397 | - 'newVersion=${{release_version}}' |
| 398 | settings: '{mvn-settings}' |
| 399 | settings-type: cfp |
| 400 | global-settings: 'global-settings' |
| 401 | global-settings-type: cfp |
| 402 | |
| 403 | - maven-target: |
| 404 | maven-version: 'mvn33' |
| 405 | goals: '{mvn-goals}' |
| 406 | settings: '{mvn-settings}' |
| 407 | settings-type: cfp |
| 408 | global-settings: 'global-settings' |
| 409 | global-settings-type: cfp |
| 410 | - docker-login |
| 411 | - shell: '{script}' |
| 412 | |
| 413 | |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 414 | - job-template: |
| 415 | # Job template for basic scm and script trigger |
| 416 | # |
| 417 | # Required Variables: |
| 418 | # branch: git branch |
| 419 | # build-node: what build node to run on |
| 420 | # script: build script to execute |
| 421 | |
| 422 | name: '{project-name}-{stream}-verify-script' |
| 423 | |
| 424 | project-type: freestyle |
| 425 | concurrent: true |
| 426 | node: '{build-node}' |
| 427 | |
| 428 | properties: |
| 429 | - ecomp-infra-properties: |
| 430 | build-days-to-keep: '{build-days-to-keep}' |
| 431 | |
| 432 | parameters: |
| 433 | - ecomp-infra-parameters: |
| 434 | project: '{project}' |
| 435 | branch: '{branch}' |
| 436 | refspec: 'refs/heads/{branch}' |
| 437 | artifacts: '{archive-artifacts}' |
| 438 | |
| 439 | scm: |
| 440 | - gerrit-trigger-scm: |
| 441 | refspec: '$GERRIT_REFSPEC' |
| 442 | choosing-strategy: 'gerrit' |
| 443 | |
| 444 | wrappers: |
| 445 | - ecomp-infra-wrappers: |
| 446 | build-timeout: '{build-timeout}' |
| 447 | |
| 448 | triggers: |
| 449 | - gerrit-trigger-patch-submitted: |
| 450 | server: '{server-name}' |
| 451 | project: '{project}' |
| 452 | branch: '{branch}' |
| 453 | files: '**' |
| 454 | |
| 455 | builders: |
| 456 | - provide-maven-settings: |
| 457 | global-settings-file: 'global-settings' |
| 458 | settings-file: '{mvn-settings}' |
| 459 | # make sure maven gets installed / setup |
| 460 | - maven-target: |
| 461 | maven-version: 'mvn33' |
| 462 | goals: '--version' |
| 463 | settings: '{mvn-settings}' |
| 464 | settings-type: cfp |
| 465 | global-settings: 'global-settings' |
| 466 | global-settings-type: cfp |
| 467 | - shell: '{script}' |
| 468 | |
| 469 | # publishers: |
| 470 | # - ecomp-infra-shiplogs: |
| 471 | # maven-version: 'mvn33' |
| 472 | |
| 473 | - job-template: |
| 474 | # Job template for 2 scm and script trigger |
| 475 | # |
| 476 | # Required Variables: |
| 477 | # branch: git branch |
| 478 | # build-node: what build node to run on |
| 479 | # script: build script to execute |
| 480 | # extra-project: extra gerrit project to checkout |
| 481 | # extra-refspec: refspec for the extra project |
| 482 | # extra-branch: branch to checkout for the extra project |
| 483 | # checkout-dir: directory to checkout the extra project to |
| 484 | # DO NOT SET THIS TO anything that translates to |
| 485 | # $WORKSPACE as it will destroy the initial |
| 486 | # project checkout |
| 487 | |
Andrew Grimberg | ec9a1bf | 2017-02-16 09:56:57 -0800 | [diff] [blame] | 488 | name: '{project-name}-{stream}-two-scm-verify-script' |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 489 | |
| 490 | project-type: freestyle |
| 491 | concurrent: true |
| 492 | node: '{build-node}' |
| 493 | |
| 494 | properties: |
| 495 | - ecomp-infra-properties: |
| 496 | build-days-to-keep: '{build-days-to-keep}' |
| 497 | |
| 498 | parameters: |
| 499 | - ecomp-infra-parameters: |
| 500 | project: '{project}' |
| 501 | branch: '{branch}' |
| 502 | refspec: 'refs/heads/{branch}' |
| 503 | artifacts: '{archive-artifacts}' |
| 504 | |
| 505 | scm: |
| 506 | - gerrit-trigger-scm: |
| 507 | refspec: '$GERRIT_REFSPEC' |
| 508 | choosing-strategy: 'gerrit' |
| 509 | - git-extra-project: |
| 510 | project: '{extra-project}' |
| 511 | refspec: '{extra-refspec}' |
| 512 | branch: '{extra-branch}' |
| 513 | checkout-dir: '{checkout-dir}' |
| 514 | |
| 515 | wrappers: |
| 516 | - ecomp-infra-wrappers: |
| 517 | build-timeout: '{build-timeout}' |
| 518 | |
| 519 | triggers: |
| 520 | - gerrit-trigger-patch-submitted: |
| 521 | server: '{server-name}' |
| 522 | project: '{project}' |
| 523 | branch: '{branch}' |
| 524 | files: '**' |
| 525 | |
| 526 | builders: |
| 527 | - provide-maven-settings: |
| 528 | global-settings-file: 'global-settings' |
| 529 | settings-file: '{mvn-settings}' |
| 530 | # make sure maven gets installed / setup |
| 531 | - maven-target: |
| 532 | maven-version: 'mvn33' |
| 533 | goals: '--version' |
| 534 | settings: '{mvn-settings}' |
| 535 | settings-type: cfp |
| 536 | global-settings: 'global-settings' |
| 537 | global-settings-type: cfp |
| 538 | - shell: '{script}' |
| 539 | |
| 540 | # publishers: |
| 541 | # - ecomp-infra-shiplogs: |
| 542 | # maven-version: 'mvn33' |
talasila | 91a608b | 2017-02-16 12:46:32 -0500 | [diff] [blame] | 543 | |
| 544 | |
| 545 | - job-template: |
| 546 | # Job template for 3 scm and script trigger |
| 547 | # |
| 548 | # Required Variables: |
| 549 | # branch: git branch |
| 550 | # build-node: what build node to run on |
| 551 | # script: build script to execute |
| 552 | # extra-project1: extra gerrit project to checkout |
| 553 | # extra-refspec1: refspec for the extra project |
| 554 | # extra-branch1: branch to checkout for the extra project |
| 555 | # checkout-dir1: directory to checkout the extra project to |
| 556 | # DO NOT SET THIS TO anything that translates to |
| 557 | # $WORKSPACE as it will destroy the initial |
| 558 | # project checkout |
| 559 | # extra-project2: extra gerrit project to checkout |
| 560 | # extra-refspec2: refspec for the extra project |
| 561 | # extra-branch2: branch to checkout for the extra project |
| 562 | # checkout-dir2: directory to checkout the extra project to |
| 563 | # DO NOT SET THIS TO anything that translates to |
| 564 | # $WORKSPACE as it will destroy the initial |
| 565 | # project checkout |
| 566 | name: '{project-name}-{stream}-three-scm-verify-script' |
| 567 | |
| 568 | project-type: freestyle |
| 569 | concurrent: true |
| 570 | node: '{build-node}' |
| 571 | |
| 572 | properties: |
| 573 | - ecomp-infra-properties: |
| 574 | build-days-to-keep: '{build-days-to-keep}' |
| 575 | |
| 576 | parameters: |
| 577 | - ecomp-infra-parameters: |
| 578 | project: '{project}' |
| 579 | branch: '{branch}' |
| 580 | refspec: 'refs/heads/{branch}' |
| 581 | artifacts: '{archive-artifacts}' |
talasila | 596787c | 2017-02-19 20:47:56 -0500 | [diff] [blame] | 582 | - maven-exec: |
| 583 | maven-version: 'mvn33' |
talasila | 91a608b | 2017-02-16 12:46:32 -0500 | [diff] [blame] | 584 | scm: |
| 585 | - gerrit-trigger-scm: |
| 586 | refspec: '$GERRIT_REFSPEC' |
| 587 | choosing-strategy: 'gerrit' |
| 588 | - git-extra-project: |
| 589 | project: '{extra-project1}' |
| 590 | refspec: '{extra-refspec1}' |
| 591 | branch: '{extra-branch1}' |
| 592 | checkout-dir: '{checkout-dir1}' |
| 593 | - git-extra-project: |
| 594 | project: '{extra-project2}' |
| 595 | refspec: '{extra-refspec2}' |
| 596 | branch: '{extra-branch2}' |
| 597 | checkout-dir: '{checkout-dir2}' |
| 598 | |
| 599 | wrappers: |
| 600 | - ecomp-infra-wrappers: |
| 601 | build-timeout: '{build-timeout}' |
| 602 | |
| 603 | triggers: |
| 604 | - gerrit-trigger-patch-submitted: |
| 605 | server: '{server-name}' |
| 606 | project: '{project}' |
| 607 | branch: '{branch}' |
| 608 | files: '**' |
| 609 | |
| 610 | builders: |
| 611 | - provide-maven-settings: |
| 612 | global-settings-file: 'global-settings' |
| 613 | settings-file: '{mvn-settings}' |
| 614 | # make sure maven gets installed / setup |
| 615 | - maven-target: |
| 616 | maven-version: 'mvn33' |
| 617 | goals: '--version' |
| 618 | settings: '{mvn-settings}' |
| 619 | settings-type: cfp |
| 620 | global-settings: 'global-settings' |
| 621 | global-settings-type: cfp |
| 622 | - shell: '{script}' |
| 623 | |
| 624 | # publishers: |
| 625 | # - ecomp-infra-shiplogs: |
| 626 | # maven-version: 'mvn33' |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 627 | |
| 628 | # vim: sw=2 ts=2 sts=2 et : |
| 629 | |
| 630 | - job-template: |
| 631 | # Job template for scm and script trigger - for docker merge |
| 632 | # |
| 633 | # Required Variables: |
| 634 | # branch: git branch |
| 635 | # build-node: what build node to run on |
| 636 | # script: build script to execute |
| 637 | |
| 638 | name: '{project-name}-{stream}-merge-docker-script' |
| 639 | |
| 640 | project-type: freestyle |
| 641 | concurrent: true |
| 642 | node: '{build-node}' |
| 643 | |
| 644 | properties: |
| 645 | - ecomp-infra-properties: |
| 646 | build-days-to-keep: '{build-days-to-keep}' |
| 647 | |
| 648 | parameters: |
| 649 | - ecomp-infra-parameters: |
| 650 | project: '{project}' |
| 651 | branch: '{branch}' |
| 652 | refspec: 'refs/heads/{branch}' |
| 653 | artifacts: '{archive-artifacts}' |
| 654 | - maven-exec: |
| 655 | maven-version: 'mvn33' |
| 656 | |
| 657 | scm: |
| 658 | - gerrit-trigger-scm: |
| 659 | refspec: '' |
| 660 | choosing-strategy: 'default' |
talasila | 596787c | 2017-02-19 20:47:56 -0500 | [diff] [blame] | 661 | - git-extra-project: |
| 662 | project: '{extra-project1}' |
| 663 | refspec: '{extra-refspec1}' |
| 664 | branch: '{extra-branch1}' |
| 665 | checkout-dir: '{checkout-dir1}' |
| 666 | - git-extra-project: |
| 667 | project: '{extra-project2}' |
| 668 | refspec: '{extra-refspec2}' |
| 669 | branch: '{extra-branch2}' |
| 670 | checkout-dir: '{checkout-dir2}' |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 671 | |
| 672 | wrappers: |
| 673 | - ecomp-infra-wrappers: |
| 674 | build-timeout: '{build-timeout}' |
| 675 | |
| 676 | triggers: |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 677 | - gerrit-trigger-patch-merged: |
| 678 | server: '{server-name}' |
| 679 | project: '{project}' |
| 680 | branch: '{branch}' |
| 681 | files: '**' |
| 682 | |
| 683 | builders: |
| 684 | - provide-maven-settings: |
| 685 | global-settings-file: 'global-settings' |
| 686 | settings-file: '{mvn-settings}' |
| 687 | - docker-login |
| 688 | # make sure maven gets installed / setup |
| 689 | - maven-target: |
| 690 | maven-version: 'mvn33' |
| 691 | goals: '--version' |
| 692 | settings: '{mvn-settings}' |
| 693 | settings-type: cfp |
| 694 | global-settings: 'global-settings' |
| 695 | global-settings-type: cfp |
| 696 | - shell: '{script}' |
| 697 | |
| 698 | # publishers: |
| 699 | # - ecomp-infra-shiplogs: |
| 700 | # maven-version: 'mvn33' |