Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 1 | --- |
| 2 | - job-template: |
| 3 | # Job template for Java verify jobs |
| 4 | # |
| 5 | # The purpose of this job template is to run "maven clean install" for |
| 6 | # projects using this template. |
| 7 | # |
| 8 | # Required Variables: |
| 9 | # branch: git branch (eg. stable/lithium or master) |
| 10 | |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 11 | name: '{project-name}-{stream}-verify-java' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 12 | |
| 13 | project-type: freestyle |
| 14 | concurrent: true |
| 15 | node: '{build-node}' |
| 16 | |
| 17 | properties: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 18 | - ecomp-infra-properties: |
| 19 | build-days-to-keep: '{build-days-to-keep}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 20 | |
| 21 | parameters: |
| 22 | - ecomp-infra-parameters: |
| 23 | project: '{project}' |
| 24 | branch: '{branch}' |
| 25 | refspec: 'refs/heads/{branch}' |
Andrew Grimberg | 597853d | 2017-01-31 05:28:25 -0800 | [diff] [blame] | 26 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 27 | |
| 28 | scm: |
| 29 | - gerrit-trigger-scm: |
| 30 | refspec: '$GERRIT_REFSPEC' |
| 31 | choosing-strategy: 'gerrit' |
| 32 | |
| 33 | wrappers: |
| 34 | - ecomp-infra-wrappers: |
| 35 | build-timeout: '{build-timeout}' |
| 36 | |
| 37 | triggers: |
| 38 | - gerrit-trigger-patch-submitted: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 39 | server: '{server-name}' |
| 40 | project: '{project}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 41 | branch: '{branch}' |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 42 | files: '**' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 43 | |
| 44 | builders: |
| 45 | - provide-maven-settings: |
| 46 | global-settings-file: 'global-settings' |
| 47 | settings-file: '{mvn-settings}' |
| 48 | - maven-target: |
| 49 | maven-version: 'mvn33' |
| 50 | goals: 'clean install' |
| 51 | settings: '{mvn-settings}' |
| 52 | settings-type: cfp |
| 53 | global-settings: 'global-settings' |
| 54 | global-settings-type: cfp |
| 55 | |
Andrew Grimberg | 83f7ebf | 2017-01-31 04:44:44 -0800 | [diff] [blame] | 56 | # publishers: |
| 57 | # - ecomp-infra-shiplogs: |
| 58 | # maven-version: 'mvn33' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 59 | |
| 60 | - job-template: |
| 61 | # Job template for Java verify jobs with POM not at the root |
| 62 | # |
| 63 | # The purpose of this job template is to run "maven clean install" for |
| 64 | # projects using this template. |
| 65 | # |
| 66 | # Required Variables: |
| 67 | # branch: git branch (eg. stable/lithium or master) |
| 68 | # pom: name/location of the pom.xml file relative to the workspace |
| 69 | # pattern: ant file-path pattern relative to the workspace used to |
| 70 | # trigger the job |
| 71 | |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 72 | name: '{project-name}-{stream}-{subproject}-verify-java' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 73 | |
| 74 | project-type: freestyle |
| 75 | concurrent: true |
| 76 | node: '{build-node}' |
| 77 | |
| 78 | properties: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 79 | - ecomp-infra-properties: |
| 80 | build-days-to-keep: '{build-days-to-keep}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 81 | |
| 82 | parameters: |
| 83 | - ecomp-infra-parameters: |
| 84 | project: '{project}' |
| 85 | branch: '{branch}' |
| 86 | refspec: 'refs/heads/{branch}' |
Andrew Grimberg | 597853d | 2017-01-31 05:28:25 -0800 | [diff] [blame] | 87 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 88 | |
| 89 | scm: |
| 90 | - gerrit-trigger-scm: |
| 91 | refspec: '$GERRIT_REFSPEC' |
| 92 | choosing-strategy: 'gerrit' |
| 93 | |
| 94 | wrappers: |
| 95 | - ecomp-infra-wrappers: |
| 96 | build-timeout: '{build-timeout}' |
| 97 | |
| 98 | triggers: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 99 | - gerrit-trigger-patch-submitted: |
| 100 | server: '{server-name}' |
| 101 | project: '{project}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 102 | branch: '{branch}' |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 103 | files: '{pattern}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 104 | |
| 105 | builders: |
| 106 | - provide-maven-settings: |
| 107 | global-settings-file: 'global-settings' |
| 108 | settings-file: '{mvn-settings}' |
| 109 | - maven-target: |
| 110 | maven-version: 'mvn33' |
| 111 | pom: '{pom}' |
| 112 | goals: 'clean install' |
| 113 | settings: '{mvn-settings}' |
| 114 | settings-type: cfp |
| 115 | global-settings: 'global-settings' |
| 116 | global-settings-type: cfp |
| 117 | |
Andrew Grimberg | 83f7ebf | 2017-01-31 04:44:44 -0800 | [diff] [blame] | 118 | # publishers: |
| 119 | # - ecomp-infra-shiplogs: |
| 120 | # maven-version: 'mvn33' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 121 | |
| 122 | - job-template: |
JulienBe | 2f4ee07 | 2017-02-01 21:42:32 +0100 | [diff] [blame] | 123 | # Job template for Java daily release jobs |
| 124 | # |
Andrew Grimberg | 24443ee | 2017-02-02 08:29:12 -0800 | [diff] [blame] | 125 | # The purpose of this job template is to run "maven version && maven clean |
| 126 | # deploy" for projects using this template. |
JulienBe | 2f4ee07 | 2017-02-01 21:42:32 +0100 | [diff] [blame] | 127 | # |
| 128 | # Required Variables: |
| 129 | # branch: git branch (eg. stable/lithium or master) |
| 130 | name: '{project-name}-{stream}-release-java-daily' |
| 131 | |
| 132 | project-type: freestyle |
| 133 | node: '{build-node}' |
| 134 | maven-deploy-properties: |
| 135 | properties: |
| 136 | - ecomp-infra-properties: |
| 137 | build-days-to-keep: '{build-days-to-keep}' |
| 138 | |
| 139 | parameters: |
| 140 | - ecomp-infra-parameters: |
| 141 | project: '{project}' |
| 142 | branch: '{branch}' |
| 143 | refspec: 'refs/heads/{branch}' |
| 144 | artifacts: '{archive-artifacts}' |
| 145 | |
| 146 | scm: |
| 147 | - gerrit-trigger-scm: |
| 148 | refspec: '' |
| 149 | choosing-strategy: 'default' |
| 150 | |
| 151 | wrappers: |
| 152 | - ecomp-infra-wrappers: |
| 153 | build-timeout: '{build-timeout}' |
| 154 | |
| 155 | triggers: |
| 156 | # 11 AM UTC |
| 157 | - timed: 'H 11 * * *' |
| 158 | |
| 159 | builders: |
| 160 | - provide-maven-settings: |
| 161 | global-settings-file: 'global-settings' |
| 162 | settings-file: '{mvn-settings}' |
| 163 | |
| 164 | - inject: |
| 165 | properties-file: version.properties |
| 166 | - maven-target: |
| 167 | maven-version: 'mvn33' |
| 168 | goals: 'versions:set versions:update-child-modules versions:commit' |
| 169 | properties: |
| 170 | - 'newVersion=${{release_version}}' |
| 171 | settings: '{mvn-settings}' |
| 172 | settings-type: cfp |
| 173 | global-settings: 'global-settings' |
| 174 | global-settings-type: cfp |
| 175 | |
| 176 | - maven-target: |
| 177 | maven-version: 'mvn33' |
JulienBe | 360dc8c | 2017-02-07 02:53:25 -0800 | [diff] [blame] | 178 | goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org' |
Andrew Grimberg | 24443ee | 2017-02-02 08:29:12 -0800 | [diff] [blame] | 179 | properties: |
| 180 | - '{maven-deploy-properties}' |
JulienBe | 2f4ee07 | 2017-02-01 21:42:32 +0100 | [diff] [blame] | 181 | settings: '{mvn-settings}' |
| 182 | settings-type: cfp |
| 183 | global-settings: 'global-settings' |
| 184 | global-settings-type: cfp |
| 185 | |
| 186 | - job-template: |
Carsten Lund | da8b697 | 2017-02-15 23:59:25 +0000 | [diff] [blame^] | 187 | # Job template for Java daily release jobs with POM not at the root |
| 188 | # |
| 189 | # The purpose of this job template is to run "maven version && maven clean |
| 190 | # deploy" for projects using this template. |
| 191 | # |
| 192 | # Required Variables: |
| 193 | # branch: git branch (eg. stable/lithium or master) |
| 194 | # pom: name/location of the pom.xml file relative to the workspace |
| 195 | |
| 196 | |
| 197 | name: '{project-name}-{stream}-{subproject}-release-java-daily' |
| 198 | |
| 199 | project-type: freestyle |
| 200 | node: '{build-node}' |
| 201 | maven-deploy-properties: |
| 202 | properties: |
| 203 | - ecomp-infra-properties: |
| 204 | build-days-to-keep: '{build-days-to-keep}' |
| 205 | |
| 206 | parameters: |
| 207 | - ecomp-infra-parameters: |
| 208 | project: '{project}' |
| 209 | branch: '{branch}' |
| 210 | refspec: 'refs/heads/{branch}' |
| 211 | artifacts: '{archive-artifacts}' |
| 212 | |
| 213 | scm: |
| 214 | - gerrit-trigger-scm: |
| 215 | refspec: '' |
| 216 | choosing-strategy: 'default' |
| 217 | |
| 218 | wrappers: |
| 219 | - ecomp-infra-wrappers: |
| 220 | build-timeout: '{build-timeout}' |
| 221 | |
| 222 | triggers: |
| 223 | # 11 AM UTC |
| 224 | - timed: 'H 11 * * *' |
| 225 | |
| 226 | builders: |
| 227 | - provide-maven-settings: |
| 228 | global-settings-file: 'global-settings' |
| 229 | settings-file: '{mvn-settings}' |
| 230 | |
| 231 | - inject: |
| 232 | properties-file: version.properties |
| 233 | - maven-target: |
| 234 | maven-version: 'mvn33' |
| 235 | pom: '{pom}' |
| 236 | goals: 'versions:set versions:update-child-modules versions:commit' |
| 237 | properties: |
| 238 | - 'newVersion=${{release_version}}' |
| 239 | settings: '{mvn-settings}' |
| 240 | settings-type: cfp |
| 241 | global-settings: 'global-settings' |
| 242 | global-settings-type: cfp |
| 243 | |
| 244 | - maven-target: |
| 245 | maven-version: 'mvn33' |
| 246 | goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org' |
| 247 | properties: |
| 248 | - '{maven-deploy-properties}' |
| 249 | settings: '{mvn-settings}' |
| 250 | settings-type: cfp |
| 251 | global-settings: 'global-settings' |
| 252 | global-settings-type: cfp |
| 253 | |
| 254 | - job-template: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 255 | # Job template for Java merge jobs |
| 256 | # |
| 257 | # The purpose of this job template is to run "maven clean deploy" for |
| 258 | # projects using this template. |
| 259 | # |
| 260 | # Required Variables: |
| 261 | # branch: git branch (eg. stable/lithium or master) |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 262 | name: '{project-name}-{stream}-merge-java' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 263 | |
| 264 | project-type: freestyle |
| 265 | node: '{build-node}' |
| 266 | |
| 267 | properties: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 268 | - ecomp-infra-properties: |
| 269 | build-days-to-keep: '{build-days-to-keep}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 270 | |
| 271 | parameters: |
| 272 | - ecomp-infra-parameters: |
| 273 | project: '{project}' |
| 274 | branch: '{branch}' |
| 275 | refspec: 'refs/heads/{branch}' |
Andrew Grimberg | 597853d | 2017-01-31 05:28:25 -0800 | [diff] [blame] | 276 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 277 | |
| 278 | scm: |
| 279 | - gerrit-trigger-scm: |
| 280 | refspec: '' |
| 281 | choosing-strategy: 'default' |
| 282 | |
| 283 | wrappers: |
| 284 | - ecomp-infra-wrappers: |
| 285 | build-timeout: '{build-timeout}' |
| 286 | |
| 287 | triggers: |
| 288 | - gerrit-trigger-patch-merged: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 289 | server: '{server-name}' |
| 290 | project: '{project}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 291 | branch: '{branch}' |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 292 | files: '**' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 293 | |
| 294 | builders: |
| 295 | - provide-maven-settings: |
| 296 | global-settings-file: 'global-settings' |
| 297 | settings-file: '{mvn-settings}' |
| 298 | - maven-target: |
| 299 | maven-version: 'mvn33' |
| 300 | # yamllint disable rule:line-length |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 301 | goals: 'clean deploy' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 302 | # yamllint enable |
| 303 | settings: '{mvn-settings}' |
| 304 | settings-type: cfp |
| 305 | global-settings: 'global-settings' |
| 306 | global-settings-type: cfp |
| 307 | |
Andrew Grimberg | 83f7ebf | 2017-01-31 04:44:44 -0800 | [diff] [blame] | 308 | # publishers: |
| 309 | # - ecomp-infra-shiplogs: |
| 310 | # maven-version: 'mvn33' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 311 | |
| 312 | - job-template: |
| 313 | # Job template for Java merge jobs with POM not at the root |
| 314 | # |
| 315 | # The purpose of this job template is to run "maven clean deploy" for |
| 316 | # projects using this template. |
| 317 | # |
| 318 | # Required Variables: |
| 319 | # branch: git branch (eg. stable/lithium or master) |
| 320 | # pom: name/location of the pom.xml file relative to the workspace |
| 321 | # pattern: ant file-path pattern relative to the workspace used to |
| 322 | # trigger the job |
| 323 | |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 324 | name: '{project-name}-{stream}-{subproject}-merge-java' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 325 | |
| 326 | project-type: freestyle |
| 327 | node: '{build-node}' |
| 328 | |
| 329 | properties: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 330 | - ecomp-infra-properties: |
| 331 | build-days-to-keep: '{build-days-to-keep}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 332 | |
| 333 | parameters: |
| 334 | - ecomp-infra-parameters: |
| 335 | project: '{project}' |
| 336 | branch: '{branch}' |
| 337 | refspec: 'refs/heads/{branch}' |
Andrew Grimberg | 597853d | 2017-01-31 05:28:25 -0800 | [diff] [blame] | 338 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 339 | |
| 340 | scm: |
| 341 | - gerrit-trigger-scm: |
| 342 | refspec: '' |
| 343 | choosing-strategy: 'default' |
| 344 | |
| 345 | wrappers: |
| 346 | - ecomp-infra-wrappers: |
| 347 | build-timeout: '{build-timeout}' |
| 348 | |
| 349 | triggers: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 350 | - gerrit-trigger-patch-merged: |
| 351 | server: '{server-name}' |
| 352 | project: '{project}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 353 | branch: '{branch}' |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 354 | files: '{pattern}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 355 | |
| 356 | builders: |
| 357 | - provide-maven-settings: |
| 358 | global-settings-file: 'global-settings' |
| 359 | settings-file: '{mvn-settings}' |
| 360 | - maven-target: |
| 361 | maven-version: 'mvn33' |
| 362 | pom: '{pom}' |
| 363 | # yamllint disable rule:line-length |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 364 | goals: 'clean deploy' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 365 | # yamllint enable |
| 366 | settings: '{mvn-settings}' |
| 367 | settings-type: cfp |
| 368 | global-settings: 'global-settings' |
| 369 | global-settings-type: cfp |
| 370 | |
Andrew Grimberg | 83f7ebf | 2017-01-31 04:44:44 -0800 | [diff] [blame] | 371 | # publishers: |
| 372 | # - ecomp-infra-shiplogs: |
| 373 | # maven-version: 'mvn33' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 374 | |
| 375 | - job-template: |
| 376 | name: '{project-name}-{stream}-docker-java-daily' |
| 377 | project-type: freestyle |
Andrew Grimberg | 2137b1d | 2017-02-15 07:24:53 -0800 | [diff] [blame] | 378 | node: 'ubuntu1604-docker-8c-8g' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 379 | |
| 380 | properties: |
| 381 | - ecomp-infra-properties: |
| 382 | build-days-to-keep: '{build-days-to-keep}' |
| 383 | |
| 384 | parameters: |
| 385 | - ecomp-infra-parameters: |
| 386 | project: '{project}' |
| 387 | branch: '{branch}' |
| 388 | refspec: 'refs/heads/{branch}' |
| 389 | artifacts: '{archive-artifacts}' |
| 390 | |
| 391 | scm: |
| 392 | - gerrit-trigger-scm: |
| 393 | refspec: '' |
| 394 | choosing-strategy: 'default' |
| 395 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 396 | wrappers: |
| 397 | - ecomp-infra-wrappers: |
| 398 | build-timeout: '{build-timeout}' |
| 399 | |
| 400 | triggers: |
| 401 | # 11 AM UTC |
| 402 | - timed: 'H 12 * * *' |
| 403 | |
| 404 | builders: |
Anaël Closson | 63e090e | 2017-02-15 14:50:45 +0100 | [diff] [blame] | 405 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 406 | - provide-maven-settings: |
| 407 | global-settings-file: 'global-settings' |
| 408 | settings-file: '{mvn-settings}' |
Anaël Closson | 7313fea | 2017-02-14 15:56:21 +0100 | [diff] [blame] | 409 | |
Anaël Closson | 63e090e | 2017-02-15 14:50:45 +0100 | [diff] [blame] | 410 | - docker-login |
| 411 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 412 | - maven-docker-push-daily: |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 413 | mvn-settings: '{mvn-settings}' |
| 414 | pom: '{docker-pom}' |