github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+incompatible/ci/cli-v7/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-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-lock/name | cut -d "." -f 1) 29 30 if [[ $ENV == "homeroom" ]]; then 31 export CF_INT_PASSWORD=$(bosh int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password) 32 else 33 pushd vars-store/ci/infrastructure/$ENV 34 eval "$(bbl print-env)" 35 popd 36 37 credhub login 38 export CF_INT_OIDC_PASSWORD=$(credhub get -n /bosh-$ENV/cf/uaa_oidc_admin_password | bosh interpolate --path /value -) 39 export CF_INT_PASSWORD=$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -) 40 fi 41 42 set -x 43 44 # output password into a temp file for consumption by Windows 45 echo $CF_INT_PASSWORD > cleanup-integration-outputs/cf-password 46 echo $CF_INT_OIDC_PASSWORD > cleanup-integration-outputs/uaa-oidc-password 47 48 set -ex 49 50 domain=$(cat bosh-lock/name) 51 export CF_INT_API="https://api.${domain}" 52 53 export PATH=$GOPATH/bin:$PATH 54 55 pushd cf-cli-binaries 56 tar xvzf cf-cli-binaries.tgz 57 chmod +x cf7-cli_linux_x86-64 58 mv cf7-cli_linux_x86-64 $GOPATH/bin/cf 59 popd 60 61 cd cli-ci 62 bin/cleanup-integration "${ARGS}"