github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+incompatible/ci/cli/tasks/cleanup-integration.yml (about)

     1  ---
     2  platform: linux
     3  
     4  image_resource:
     5    type: docker-image
     6    source:
     7      repository: cfcli/cli-base
     8  
     9  inputs:
    10  - name: cli-ci
    11  - name: cf-cli-binaries
    12  - name: bosh-lite-lock
    13  - name: vars-store
    14  
    15  outputs:
    16  - name: cleanup-integration-outputs
    17  
    18  params:
    19    ARGS:
    20  
    21  run:
    22    path: bash
    23    args:
    24    - -c
    25    - |
    26      set -e
    27  
    28      ENV=$(cat bosh-lite-lock/name | cut -d "." -f 1)
    29  
    30      export CF_INT_PASSWORD=$(bosh int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password)
    31      # output password into a temp file for consumption by Windows
    32      echo $CF_INT_PASSWORD > cleanup-integration-outputs/cf-password
    33  
    34      set -ex
    35  
    36      domain=$(cat bosh-lite-lock/name)
    37      export CF_INT_API="https://api.${domain}"
    38  
    39      export PATH=$GOPATH/bin:$PATH
    40  
    41      pushd cf-cli-binaries
    42        tar xvzf cf-cli-binaries.tgz
    43        chmod +x cf-cli_linux_x86-64
    44        mv cf-cli_linux_x86-64 $GOPATH/bin/cf
    45      popd
    46  
    47      cd cli-ci
    48      bin/cleanup-integration "${ARGS}"