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