github.com/willmadison/cli@v6.40.1-0.20181018160101-29d5937903ff+incompatible/ci/cli-v7/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-cli-binaries
    44    type: s3
    45    source:
    46      bucket: ((staging-bucket-name))
    47      access_key_id: ((cli-team-aws-s3-access-key-id))
    48      secret_access_key: ((cli-team-aws-s3-secret-access-key))
    49      versioned_file: "v7/cf-cli-binaries.tgz"
    50  
    51  - name: edge-linux-binary-32
    52    type: s3
    53    source:
    54      bucket: v7-cf-cli-releases
    55      access_key_id: ((cli-team-aws-s3-access-key-id))
    56      secret_access_key: ((cli-team-aws-s3-secret-access-key))
    57      versioned_file: master/cf7-cli_edge_linux_i686.tgz
    58      region_name: us-west-1
    59  
    60  - name: edge-linux-binary-64
    61    type: s3
    62    source:
    63      bucket: v7-cf-cli-releases
    64      access_key_id: ((cli-team-aws-s3-access-key-id))
    65      secret_access_key: ((cli-team-aws-s3-secret-access-key))
    66      versioned_file: master/cf7-cli_edge_linux_x86-64.tgz
    67      region_name: us-west-1
    68  
    69  - name: edge-osx-binary-64
    70    type: s3
    71    source:
    72      bucket: v7-cf-cli-releases
    73      access_key_id: ((cli-team-aws-s3-access-key-id))
    74      secret_access_key: ((cli-team-aws-s3-secret-access-key))
    75      versioned_file: master/cf7-cli_edge_osx.tgz
    76      region_name: us-west-1
    77  
    78  - name: edge-windows-binary-32
    79    type: s3
    80    source:
    81      bucket: v7-cf-cli-releases
    82      access_key_id: ((cli-team-aws-s3-access-key-id))
    83      secret_access_key: ((cli-team-aws-s3-secret-access-key))
    84      versioned_file: master/cf7-cli_edge_win32.zip
    85      region_name: us-west-1
    86  
    87  - name: edge-windows-binary-64
    88    type: s3
    89    source:
    90      bucket: v7-cf-cli-releases
    91      access_key_id: ((cli-team-aws-s3-access-key-id))
    92      secret_access_key: ((cli-team-aws-s3-secret-access-key))
    93      versioned_file: master/cf7-cli_edge_winx64.zip
    94      region_name: us-west-1
    95  
    96  - name: edge-deb-installer-32
    97    type: s3
    98    source:
    99      bucket: v7-cf-cli-releases
   100      access_key_id: ((cli-team-aws-s3-access-key-id))
   101      secret_access_key: ((cli-team-aws-s3-secret-access-key))
   102      versioned_file: master/cf7-cli-installer_edge_i686.deb
   103      region_name: us-west-1
   104  
   105  - name: edge-deb-installer-64
   106    type: s3
   107    source:
   108      bucket: v7-cf-cli-releases
   109      access_key_id: ((cli-team-aws-s3-access-key-id))
   110      secret_access_key: ((cli-team-aws-s3-secret-access-key))
   111      versioned_file: master/cf7-cli-installer_edge_x86-64.deb
   112      region_name: us-west-1
   113  
   114  - name: edge-redhat-installer-32
   115    type: s3
   116    source:
   117      bucket: v7-cf-cli-releases
   118      access_key_id: ((cli-team-aws-s3-access-key-id))
   119      secret_access_key: ((cli-team-aws-s3-secret-access-key))
   120      versioned_file: master/cf7-cli-installer_edge_i686.rpm
   121      region_name: us-west-1
   122  
   123  - name: edge-redhat-installer-64
   124    type: s3
   125    source:
   126      bucket: v7-cf-cli-releases
   127      access_key_id: ((cli-team-aws-s3-access-key-id))
   128      secret_access_key: ((cli-team-aws-s3-secret-access-key))
   129      versioned_file: master/cf7-cli-installer_edge_x86-64.rpm
   130      region_name: us-west-1
   131  
   132  - name: edge-osx-installer-64
   133    type: s3
   134    source:
   135      bucket: v7-cf-cli-releases
   136      access_key_id: ((cli-team-aws-s3-access-key-id))
   137      secret_access_key: ((cli-team-aws-s3-secret-access-key))
   138      versioned_file: master/cf7-cli-installer_edge_osx.pkg
   139      region_name: us-west-1
   140  
   141  - name: edge-windows-installer-32
   142    type: s3
   143    source:
   144      bucket: v7-cf-cli-releases
   145      access_key_id: ((cli-team-aws-s3-access-key-id))
   146      secret_access_key: ((cli-team-aws-s3-secret-access-key))
   147      versioned_file: master/cf7-cli-installer_edge_win32.zip
   148      region_name: us-west-1
   149  
   150  - name: edge-windows-installer-64
   151    type: s3
   152    source:
   153      bucket: v7-cf-cli-releases
   154      access_key_id: ((cli-team-aws-s3-access-key-id))
   155      secret_access_key: ((cli-team-aws-s3-secret-access-key))
   156      versioned_file: master/cf7-cli-installer_edge_winx64.zip
   157      region_name: us-west-1
   158  
   159  - name: gcp-bosh-pool
   160    type: pool
   161    source:
   162      uri: git@github.com:cloudfoundry/cli-pools
   163      private_key: ((cli-pools-github-private-key))
   164      branch: master
   165      pool: mashed-potato
   166  
   167  - name: slack-alert
   168    type: slack-notification
   169    source:
   170      url: ((vat-slack-webhook-url))
   171  
   172  - name: vars-store
   173    type: git
   174    source:
   175      uri: git@github.com:cloudfoundry/cli-private
   176      private_key: ((cli-private-github-private-key))
   177      branch: master
   178  
   179  # values for this already exist in last pass, blocked on
   180  # blocked on https://github.com/concourse/concourse/issues/1407
   181  # - name: cf-cli-tracker
   182  #   type: tracker
   183  #   source:
   184  #     token: ((cf-cli-public-tracker-token))
   185  #     project_id: ((vat-public-tracker-project-id))
   186  #     tracker_url: https://www.pivotaltracker.com
   187  
   188  jobs:
   189  - name: units
   190    serial: true
   191    plan:
   192    - aggregate:
   193      - get: cli
   194        trigger: true
   195      - get: cli-ci
   196    - aggregate:
   197      - task: units-linux
   198        file: cli-ci/ci/cli-v7/tasks/units-linux.yml
   199        on_failure:
   200           put: slack-alert
   201           params:
   202             channel: '#v3-acceleration-team'
   203             text: |
   204               Linux unit tests failed :(
   205               $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   206      - task: units-osx
   207        file: cli-ci/ci/cli-v7/tasks/units-osx.yml
   208        on_failure:
   209           put: slack-alert
   210           params:
   211             channel: '#v3-acceleration-team'
   212             text: |
   213               OS X unit tests failed :(
   214               $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   215      - task: units-windows
   216        file: cli-ci/ci/cli-v7/tasks/units-windows.yml
   217        on_failure:
   218           put: slack-alert
   219           params:
   220             channel: '#v3-acceleration-team'
   221             text: |
   222               Windows unit tests failed :(
   223               $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   224  
   225  - name: build-binaries
   226    serial: true
   227    plan:
   228    - aggregate:
   229      - get: cli
   230        trigger: true
   231        passed: [units]
   232      - get: cli-ci
   233      - get: cli-i18n
   234    - task: build-i18n
   235      file: cli-ci/ci/cli-v7/tasks/generate-i18n-resources.yml
   236      on_failure:
   237        put: slack-alert
   238        params:
   239          channel: '#v3-acceleration-team'
   240          text: |
   241            i18n generation failed :(
   242            $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   243    - aggregate:
   244      - task: build
   245        file: cli-ci/ci/cli-v7/tasks/build-binaries.yml
   246        on_failure:
   247          put: slack-alert
   248          params:
   249            channel: '#v3-acceleration-team'
   250            text: |
   251              build binaries failed :(
   252              $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   253      - task: build-osx
   254        file: cli-ci/ci/cli-v7/tasks/build-osx-binary.yml
   255        on_failure:
   256          put: slack-alert
   257          params:
   258            channel: '#v3-acceleration-team'
   259            text: |
   260              build OS X binaries failed :(
   261              $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   262    - task: combine-binaries
   263      file: cli-ci/ci/cli-v7/tasks/combine-binaries.yml
   264    - put: cf-cli-binaries
   265      params:
   266        file: compiled/cf-cli-binaries.tgz
   267  
   268  - name: integration-linux
   269    serial: true
   270    plan:
   271    - aggregate:
   272      - get: cli
   273        passed: [build-binaries]
   274      - get: cf-cli-binaries
   275        passed: [build-binaries]
   276        trigger: true
   277      - get: cli-ci
   278      - get: cli-integration
   279      - get: vars-store
   280      - put: bosh-lock
   281        resource: gcp-bosh-pool
   282        params:
   283          acquire: true
   284    - do:
   285      - task: cleanup-integration
   286        file: cli-ci/ci/cli-v7/tasks/cleanup-integration.yml
   287      - task: integration
   288        file: cli-ci/ci/cli-v7/tasks/integration-linux.yml
   289        on_failure:
   290          put: slack-alert
   291          params:
   292            channel: '#v3-acceleration-team'
   293            text: |
   294              :canada: Linux integration failed :throwing-in-the-towel:
   295              :dancing-penguin: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   296        ensure:
   297          task: cleanup-integration
   298          file: cli-ci/ci/cli-v7/tasks/cleanup-integration.yml
   299        params: &integration_params
   300          CF_INT_CLIENT_ID: 'potato-face'
   301          CF_INT_CLIENT_SECRET: ((client-secret))
   302          CF_INT_DOCKER_IMAGE: ((dockerhub-private-image))
   303          CF_INT_DOCKER_USERNAME: ((dockerhub-username))
   304          CF_INT_DOCKER_PASSWORD: ((dockerhub-password))
   305          CF_INT_IGNORE_API_VERSION_CHECK: false
   306    ensure:
   307      put: gcp-bosh-pool
   308      params:
   309        release: bosh-lock
   310  
   311  - name: integration-windows
   312    serial: true
   313    plan:
   314    - aggregate:
   315      - get: cli
   316        passed: [build-binaries]
   317      - get: cf-cli-binaries
   318        passed: [build-binaries]
   319        trigger: true
   320      - get: cli-ci
   321      - get: cli-integration
   322      - get: vars-store
   323      - put: bosh-lock
   324        resource: gcp-bosh-pool
   325        params:
   326          acquire: true
   327    - do:
   328      - task: cleanup-integration
   329        file: cli-ci/ci/cli-v7/tasks/cleanup-integration.yml
   330      - task: integration
   331        file: cli-ci/ci/cli-v7/tasks/integration-windows.yml
   332        params:
   333          <<: *integration_params
   334        input_mapping:
   335          cf-credentials: cleanup-integration-outputs
   336        on_failure:
   337          put: slack-alert
   338          params:
   339            channel: '#v3-acceleration-team'
   340            text: |
   341              :canada: Windows integration failed :throwing-in-the-towel:
   342              :win95: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   343        ensure:
   344          task: cleanup-integration
   345          file: cli-ci/ci/cli-v7/tasks/cleanup-integration.yml
   346    ensure:
   347      put: gcp-bosh-pool
   348      params:
   349        release: bosh-lock
   350  
   351  - name: create-installers
   352    serial: true
   353    plan:
   354    - aggregate:
   355      - get: cli
   356        passed: [integration-linux, integration-windows]
   357      - get: cf-cli-binaries
   358        passed: [integration-linux, integration-windows]
   359        trigger: true
   360      - get: cli-ci
   361    - task: extract-binaries
   362      file: cli-ci/ci/cli-v7/tasks/extract-binaries.yml
   363      on_failure:
   364         put: slack-alert
   365         params:
   366           channel: '#v3-acceleration-team'
   367           text: |
   368             extracting the binaries in installer creation failed :bart:
   369             $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   370    - aggregate:
   371      - task: unix
   372        file: cli-ci/ci/cli-v7/tasks/create-installers.yml
   373        on_failure:
   374           put: slack-alert
   375           params:
   376             channel: '#v3-acceleration-team'
   377             text: |
   378               :ubuntu: create unix installers failed :redhat:
   379               $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   380      - task: windows
   381        file: cli-ci/ci/cli-v7/tasks/create-installers-windows.yml
   382        on_failure:
   383           put: slack-alert
   384           params:
   385             channel: '#v3-acceleration-team'
   386             text: |
   387               create windows installer failed :winc:
   388               $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   389    - task: package-binaries
   390      file: cli-ci/ci/cli-v7/tasks/package-binaries.yml
   391      on_failure:
   392         put: slack-alert
   393         params:
   394           channel: '#v3-acceleration-team'
   395           text: |
   396             extracting the binaries in installer creation failed :package:
   397             $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
   398    - aggregate:
   399      - put: edge-linux-binary-32
   400        params:
   401          file: archives/cf7-cli_edge_linux_i686.tgz
   402      - put: edge-linux-binary-64
   403        params:
   404          file: archives/cf7-cli_edge_linux_x86-64.tgz
   405      - put: edge-osx-binary-64
   406        params:
   407          file: archives/cf7-cli_edge_osx.tgz
   408      - put: edge-windows-binary-32
   409        params:
   410          file: archives/cf7-cli_edge_win32.zip
   411      - put: edge-windows-binary-64
   412        params:
   413          file: archives/cf7-cli_edge_winx64.zip
   414      - put: edge-deb-installer-32
   415        params:
   416          file: archives/cf7-cli-installer_i686.deb
   417      - put: edge-deb-installer-64
   418        params:
   419          file: archives/cf7-cli-installer_x86-64.deb
   420      - put: edge-redhat-installer-32
   421        params:
   422          file: archives/cf7-cli-installer_i686.rpm
   423      - put: edge-redhat-installer-64
   424        params:
   425          file: archives/cf7-cli-installer_x86-64.rpm
   426      - put: edge-osx-installer-64
   427        params:
   428          file: archives/cf7-cli-installer_osx.pkg
   429      - put: edge-windows-installer-32
   430        params:
   431          file: winstallers/cf7-cli-installer_win32.zip
   432      - put: edge-windows-installer-64
   433        params:
   434          file: winstallers/cf7-cli-installer_winx64.zip