github.com/willmadison/cli@v6.40.1-0.20181018160101-29d5937903ff+incompatible/ci/cli/pipeline.yml (about) 1 --- 2 resource_types: 3 - name: slack-notification 4 type: docker-image 5 source: 6 repository: cfcommunity/slack-notification-resource 7 tag: latest 8 9 resources: 10 - name: cli 11 type: git 12 source: 13 uri: https://github.com/cloudfoundry/cli 14 branch: master 15 ignore_paths: &ciPaths 16 - bin 17 - ci 18 - integration 19 - README.md 20 - .github 21 22 - name: cli-i18n 23 type: git 24 source: 25 uri: https://github.com/cloudfoundry/cli-i18n 26 branch: master 27 28 - name: cli-ci 29 type: git 30 source: 31 uri: https://github.com/cloudfoundry/cli 32 branch: master 33 paths: *ciPaths 34 35 - name: cli-integration 36 type: git 37 source: 38 uri: https://github.com/cloudfoundry/cli 39 branch: master 40 paths: 41 - integration 42 43 - name: cf-acceptance-tests 44 type: git 45 source: 46 uri: https://github.com/cloudfoundry/cf-acceptance-tests 47 branch: master 48 49 - name: cf-deployment-concourse-tasks 50 type: git 51 source: 52 uri: https://github.com/cloudfoundry/cf-deployment-concourse-tasks 53 tag_filter: v7.* 54 55 - name: cf-cli-binaries 56 type: s3 57 source: 58 bucket: ((staging-bucket-name)) 59 access_key_id: ((cli-team-aws-s3-access-key-id)) 60 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 61 versioned_file: cf-cli-binaries.tgz 62 63 - name: edge-linux-binary-32 64 type: s3 65 source: 66 bucket: cf-cli-releases 67 access_key_id: ((cli-team-aws-s3-access-key-id)) 68 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 69 versioned_file: master/cf-cli_edge_linux_i686.tgz 70 region_name: us-west-1 71 72 - name: edge-linux-binary-64 73 type: s3 74 source: 75 bucket: cf-cli-releases 76 access_key_id: ((cli-team-aws-s3-access-key-id)) 77 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 78 versioned_file: master/cf-cli_edge_linux_x86-64.tgz 79 region_name: us-west-1 80 81 - name: edge-osx-binary-64 82 type: s3 83 source: 84 bucket: cf-cli-releases 85 access_key_id: ((cli-team-aws-s3-access-key-id)) 86 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 87 versioned_file: master/cf-cli_edge_osx.tgz 88 region_name: us-west-1 89 90 - name: edge-windows-binary-32 91 type: s3 92 source: 93 bucket: cf-cli-releases 94 access_key_id: ((cli-team-aws-s3-access-key-id)) 95 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 96 versioned_file: master/cf-cli_edge_win32.zip 97 region_name: us-west-1 98 99 - name: edge-windows-binary-64 100 type: s3 101 source: 102 bucket: cf-cli-releases 103 access_key_id: ((cli-team-aws-s3-access-key-id)) 104 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 105 versioned_file: master/cf-cli_edge_winx64.zip 106 region_name: us-west-1 107 108 - name: edge-deb-installer-32 109 type: s3 110 source: 111 bucket: cf-cli-releases 112 access_key_id: ((cli-team-aws-s3-access-key-id)) 113 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 114 versioned_file: master/cf-cli-installer_edge_i686.deb 115 region_name: us-west-1 116 117 - name: edge-deb-installer-64 118 type: s3 119 source: 120 bucket: cf-cli-releases 121 access_key_id: ((cli-team-aws-s3-access-key-id)) 122 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 123 versioned_file: master/cf-cli-installer_edge_x86-64.deb 124 region_name: us-west-1 125 126 - name: edge-redhat-installer-32 127 type: s3 128 source: 129 bucket: cf-cli-releases 130 access_key_id: ((cli-team-aws-s3-access-key-id)) 131 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 132 versioned_file: master/cf-cli-installer_edge_i686.rpm 133 region_name: us-west-1 134 135 - name: edge-redhat-installer-64 136 type: s3 137 source: 138 bucket: cf-cli-releases 139 access_key_id: ((cli-team-aws-s3-access-key-id)) 140 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 141 versioned_file: master/cf-cli-installer_edge_x86-64.rpm 142 region_name: us-west-1 143 144 - name: edge-osx-installer-64 145 type: s3 146 source: 147 bucket: cf-cli-releases 148 access_key_id: ((cli-team-aws-s3-access-key-id)) 149 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 150 versioned_file: master/cf-cli-installer_edge_osx.pkg 151 region_name: us-west-1 152 153 - name: edge-windows-installer-32 154 type: s3 155 source: 156 bucket: cf-cli-releases 157 access_key_id: ((cli-team-aws-s3-access-key-id)) 158 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 159 versioned_file: master/cf-cli-installer_edge_win32.zip 160 region_name: us-west-1 161 162 - name: edge-windows-installer-64 163 type: s3 164 source: 165 bucket: cf-cli-releases 166 access_key_id: ((cli-team-aws-s3-access-key-id)) 167 secret_access_key: ((cli-team-aws-s3-secret-access-key)) 168 versioned_file: master/cf-cli-installer_edge_winx64.zip 169 region_name: us-west-1 170 171 - name: gcp-bosh-pool 172 type: pool 173 source: 174 uri: git@github.com:cloudfoundry/cli-pools 175 private_key: ((cli-pools-github-private-key)) 176 branch: master 177 pool: baked-potato 178 179 - name: legacy-gcp-bosh-pool 180 type: pool 181 source: 182 uri: git@github.com:cloudfoundry/cli-pools 183 private_key: ((cli-pools-github-private-key)) 184 branch: master 185 pool: moldy-gnocchi 186 187 - name: cf-cli-tracker 188 type: tracker 189 source: 190 token: ((cf-cli-public-tracker-token)) 191 project_id: ((cf-cli-public-tracker-project-id)) 192 tracker_url: https://www.pivotaltracker.com 193 194 - name: golang 195 type: docker-image 196 source: 197 repository: golang 198 tag: 1.9 199 200 - name: baseimage 201 type: docker-image 202 source: 203 repository: phusion/baseimage 204 tag: latest 205 206 - name: cli-ci-base-dockerfile 207 type: git 208 source: 209 uri: https://github.com/cloudfoundry/cli 210 branch: master 211 paths: [ci/cli-base/Dockerfile] 212 213 - name: cli-ci-package-dockerfile 214 type: git 215 source: 216 uri: https://github.com/cloudfoundry/cli 217 branch: master 218 paths: [ci/cli-package/Dockerfile] 219 220 - name: cf-cli-base-image 221 type: docker-image 222 source: 223 repository: cfcli/cli-base 224 username: ((dockerhub-username)) 225 email: ((dockerhub-email)) 226 password: ((dockerhub-password)) 227 228 - name: cf-cli-package-image 229 type: docker-image 230 source: 231 repository: cfcli/cli-package 232 username: ((dockerhub-username)) 233 email: ((dockerhub-email)) 234 password: ((dockerhub-password)) 235 236 - name: slack-alert 237 type: slack-notification 238 source: 239 url: ((slack-webhook-url)) 240 241 - name: vars-store 242 type: git 243 source: 244 uri: git@github.com:cloudfoundry/cli-private 245 private_key: ((cli-private-github-private-key)) 246 branch: master 247 248 groups: 249 - name: cli 250 jobs: 251 - units 252 - build-binaries 253 - integration-linux 254 - integration-windows 255 - integration-legacy 256 - cats 257 - integration-experimental 258 - create-installers 259 - name: images 260 jobs: 261 - create-cli-base-image 262 - create-cli-package-image 263 264 jobs: 265 - name: units 266 serial: true 267 plan: 268 - aggregate: 269 - get: cli 270 trigger: true 271 - get: cli-ci 272 - aggregate: 273 - task: units-linux 274 file: cli-ci/ci/cli/tasks/units-linux.yml 275 on_failure: 276 put: slack-alert 277 params: 278 channel: '#cli-eng' 279 text: | 280 Linux unit tests failed :( 281 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 282 - task: units-osx 283 file: cli-ci/ci/cli/tasks/units-osx.yml 284 on_failure: 285 put: slack-alert 286 params: 287 channel: '#cli-eng' 288 text: | 289 OS X unit tests failed :( 290 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 291 - task: units-windows 292 file: cli-ci/ci/cli/tasks/units-windows.yml 293 on_failure: 294 put: slack-alert 295 params: 296 channel: '#cli-eng' 297 text: | 298 Windows unit tests failed :( 299 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 300 301 - name: build-binaries 302 serial: true 303 plan: 304 - aggregate: 305 - get: cli 306 trigger: true 307 passed: [units] 308 - get: cli-ci 309 - get: cli-i18n 310 - task: build-i18n 311 file: cli-ci/ci/cli/tasks/generate-i18n-resources.yml 312 on_failure: 313 put: slack-alert 314 params: 315 channel: '#cli-eng' 316 text: | 317 i18n generation failed :( 318 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 319 - task: build 320 file: cli-ci/ci/cli/tasks/build-binaries.yml 321 on_failure: 322 put: slack-alert 323 params: 324 channel: '#cli-eng' 325 text: | 326 build binaries failed :( 327 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 328 - task: build-osx 329 file: cli-ci/ci/cli/tasks/build-osx-binary.yml 330 on_failure: 331 put: slack-alert 332 params: 333 channel: '#cli-eng' 334 text: | 335 build OS X binaries failed :( 336 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 337 - task: combine-binaries 338 file: cli-ci/ci/cli/tasks/combine-binaries.yml 339 - put: cf-cli-binaries 340 params: 341 file: compiled/cf-cli-binaries.tgz 342 343 - name: integration-linux 344 serial: true 345 plan: 346 - aggregate: 347 - get: cli 348 passed: [build-binaries] 349 - get: cf-cli-binaries 350 passed: [build-binaries] 351 trigger: true 352 - get: cli-ci 353 - get: cli-integration 354 - get: vars-store 355 - put: bosh-lock 356 resource: gcp-bosh-pool 357 params: 358 acquire: true 359 - do: 360 - task: cleanup-integration 361 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 362 - task: integration 363 file: cli-ci/ci/cli/tasks/integration-linux.yml 364 on_failure: 365 put: slack-alert 366 params: 367 channel: '#cli-eng' 368 text: | 369 Linux integration failed :( 370 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 371 ensure: 372 task: cleanup-integration 373 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 374 params: &integration_params 375 CF_INT_CLIENT_ID: 'potato-face' 376 CF_INT_CLIENT_SECRET: ((client-secret)) 377 CF_INT_DOCKER_IMAGE: ((dockerhub-private-image)) 378 CF_INT_DOCKER_USERNAME: ((dockerhub-username)) 379 CF_INT_DOCKER_PASSWORD: ((dockerhub-password)) 380 CF_INT_IGNORE_API_VERSION_CHECK: false 381 ensure: 382 put: gcp-bosh-pool 383 params: 384 release: bosh-lock 385 386 - name: integration-windows 387 serial: true 388 plan: 389 - aggregate: 390 - get: cli 391 passed: [build-binaries] 392 - get: cf-cli-binaries 393 passed: [build-binaries] 394 trigger: true 395 - get: cli-ci 396 - get: cli-integration 397 - get: vars-store 398 - put: bosh-lock 399 resource: gcp-bosh-pool 400 params: 401 acquire: true 402 - do: 403 - task: cleanup-integration 404 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 405 - task: integration 406 file: cli-ci/ci/cli/tasks/integration-windows.yml 407 params: 408 <<: *integration_params 409 input_mapping: 410 cf-credentials: cleanup-integration-outputs 411 on_failure: 412 put: slack-alert 413 params: 414 channel: '#cli-eng' 415 text: | 416 Windows integration failed :( 417 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 418 ensure: 419 task: cleanup-integration 420 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 421 ensure: 422 put: gcp-bosh-pool 423 params: 424 release: bosh-lock 425 426 - name: integration-experimental 427 serial: true 428 plan: 429 - aggregate: 430 - get: cli 431 passed: [build-binaries] 432 - get: cf-cli-binaries 433 passed: [build-binaries] 434 trigger: true 435 - get: cli-ci 436 - get: cli-integration 437 - get: vars-store 438 - put: bosh-lock 439 resource: gcp-bosh-pool 440 params: 441 acquire: true 442 - do: 443 - task: cleanup-integration 444 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 445 - task: integration-windows 446 file: cli-ci/ci/cli/tasks/integration-experimental-windows.yml 447 params: 448 <<: *integration_params 449 input_mapping: 450 cf-credentials: cleanup-integration-outputs 451 on_failure: 452 put: slack-alert 453 params: 454 channel: '#cli-eng' 455 text: | 456 Windows integration-experimental failed :( 457 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 458 ensure: 459 task: cleanup-integration 460 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 461 - task: integration-linux 462 file: cli-ci/ci/cli/tasks/integration-experimental-linux.yml 463 on_failure: 464 put: slack-alert 465 params: 466 channel: '#cli-eng' 467 text: | 468 Linux integration-experimental failed :( 469 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 470 ensure: 471 task: cleanup-integration 472 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 473 params: 474 <<: *integration_params 475 ensure: 476 put: gcp-bosh-pool 477 params: 478 release: bosh-lock 479 480 - name: integration-legacy 481 serial: true 482 plan: 483 - aggregate: 484 - get: cli 485 passed: [build-binaries] 486 - get: cf-cli-binaries 487 passed: [build-binaries] 488 trigger: true 489 - get: cli-ci 490 - get: cli-integration 491 - get: vars-store 492 - put: bosh-lock 493 resource: legacy-gcp-bosh-pool 494 params: 495 acquire: true 496 - do: 497 - task: cleanup-integration 498 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 499 params: 500 ARGS: unbind-first 501 - task: integration 502 file: cli-ci/ci/cli/tasks/integration-linux.yml 503 params: 504 <<: *integration_params 505 CF_INT_IGNORE_API_VERSION_CHECK: false 506 NODES: 12 507 on_failure: 508 put: slack-alert 509 params: 510 channel: '#cli-eng' 511 text: | 512 Legacy integration failed :( 513 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 514 ensure: 515 task: cleanup-integration 516 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 517 params: 518 ARGS: unbind-first 519 ensure: 520 put: legacy-gcp-bosh-pool 521 params: 522 release: bosh-lock 523 524 - name: create-installers 525 serial: true 526 plan: 527 - aggregate: 528 - get: cli 529 passed: [integration-linux, integration-windows, integration-experimental, integration-legacy] 530 - get: cf-cli-binaries 531 passed: [integration-linux, integration-windows, integration-experimental, integration-legacy] 532 trigger: true 533 - get: cli-ci 534 - task: extract-binaries 535 file: cli-ci/ci/cli/tasks/extract-binaries.yml 536 on_failure: 537 put: slack-alert 538 params: 539 channel: '#cli-eng' 540 text: "extracting the binaries in installer creation failed :(" 541 - aggregate: 542 - task: unix 543 file: cli-ci/ci/cli/tasks/create-installers.yml 544 on_failure: 545 put: slack-alert 546 params: 547 channel: '#cli-eng' 548 text: "create unix installers failed :(" 549 - task: windows 550 file: cli-ci/ci/cli/tasks/create-installers-windows.yml 551 on_failure: 552 put: slack-alert 553 params: 554 channel: '#cli-eng' 555 text: "create windows installer failed :(" 556 - task: package-binaries 557 file: cli-ci/ci/cli/tasks/package-binaries.yml 558 on_failure: 559 put: slack-alert 560 params: 561 channel: '#cli-eng' 562 text: "extracting the binaries in installer creation failed :(" 563 - aggregate: 564 - put: edge-linux-binary-32 565 params: 566 file: archives/cf-cli_edge_linux_i686.tgz 567 - put: edge-linux-binary-64 568 params: 569 file: archives/cf-cli_edge_linux_x86-64.tgz 570 - put: edge-osx-binary-64 571 params: 572 file: archives/cf-cli_edge_osx.tgz 573 - put: edge-windows-binary-32 574 params: 575 file: archives/cf-cli_edge_win32.zip 576 - put: edge-windows-binary-64 577 params: 578 file: archives/cf-cli_edge_winx64.zip 579 - put: edge-deb-installer-32 580 params: 581 file: archives/cf-cli-installer_i686.deb 582 - put: edge-deb-installer-64 583 params: 584 file: archives/cf-cli-installer_x86-64.deb 585 - put: edge-redhat-installer-32 586 params: 587 file: archives/cf-cli-installer_i686.rpm 588 - put: edge-redhat-installer-64 589 params: 590 file: archives/cf-cli-installer_x86-64.rpm 591 - put: edge-osx-installer-64 592 params: 593 file: archives/cf-cli-installer_osx.pkg 594 - put: edge-windows-installer-32 595 params: 596 file: winstallers/cf-cli-installer_win32.zip 597 - put: edge-windows-installer-64 598 params: 599 file: winstallers/cf-cli-installer_winx64.zip 600 - put: cf-cli-tracker 601 params: 602 repos: 603 - cli 604 605 - name: cats 606 serial: true 607 plan: 608 - aggregate: 609 - get: cli 610 passed: [integration-linux, integration-windows, integration-experimental, integration-legacy] 611 - get: cf-acceptance-tests 612 - get: cf-deployment-concourse-tasks 613 - get: cf-cli-binaries 614 passed: [integration-linux, integration-windows, integration-experimental, integration-legacy] 615 trigger: true 616 - get: cli-ci 617 - get: vars-store 618 - put: bosh-lock 619 resource: gcp-bosh-pool 620 params: 621 acquire: true 622 - do: 623 - task: cleanup-integration 624 file: cli-ci/ci/cli/tasks/cleanup-integration.yml 625 - task: config 626 file: cli-ci/ci/cli/tasks/cats-config.yml 627 params: 628 INCLUDE_V3: true 629 BROKER_START_TIMEOUT: 330 630 CF_PUSH_TIMEOUT: 210 631 DEFAULT_TIMEOUT: 60 632 LONG_CURL_TIMEOUT: 210 633 - task: extract-linux-binary 634 file: cli-ci/ci/cli/tasks/extract-linux-binary.yml 635 - task: run-tests 636 file: cf-deployment-concourse-tasks/run-cats-with-provided-cli/task.yml 637 input_mapping: 638 integration-config: cats-config 639 cf-cli: linux-cf-binary 640 params: 641 NODES: 16 642 SKIP_REGEXP: "transparently proxies both reserved" 643 REPORTER_CONFIG_FILE_PATH: "" 644 FLAKE_ATTEMPTS: 2 645 on_failure: 646 put: slack-alert 647 params: 648 channel: '#cli-eng' 649 text: | 650 CATs Linux failed :( 651 $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME 652 ensure: 653 put: gcp-bosh-pool 654 params: 655 release: bosh-lock 656 657 658 - name: create-cli-base-image 659 serial: true 660 plan: 661 - aggregate: 662 - get: cli-ci-base-dockerfile 663 trigger: true 664 - get: golang 665 trigger: true 666 params: {save: true} 667 - put: cf-cli-base-image 668 params: 669 load_base: golang 670 build: cli-ci-base-dockerfile/ci/cli-base 671 672 - name: create-cli-package-image 673 serial: true 674 plan: 675 - aggregate: 676 - get: cli-ci-package-dockerfile 677 trigger: true 678 - get: baseimage 679 trigger: true 680 params: {save: true} 681 - put: cf-cli-package-image 682 params: 683 load_base: baseimage 684 build: cli-ci-package-dockerfile/ci/cli-package