Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- get: git
trigger: true
- get: haproxy-boshrelease-testflight
trigger: true
- task: lint
image: haproxy-boshrelease-testflight
config:
Expand Down Expand Up @@ -125,7 +126,7 @@ jobs:
- { get: git, trigger: true, passed: [unit-tests] }
- { get: stemcell }
- { get: stemcell-jammy }
- get: haproxy-boshrelease-testflight
- { get: haproxy-boshrelease-testflight, trigger: true, passed: [build-haproxy-testflight-image] }
- task: acceptance-tests
privileged: true
timeout: 4h
Expand Down Expand Up @@ -377,7 +378,7 @@ jobs:
plan:
- in_parallel:
- { get: git-pull-requests, trigger: true, version: every }
- get: docker-cpi-image
- { get: docker-cpi-image, trigger: true }
- task: create-pr-tag
image: docker-cpi-image
config:
Expand Down
13 changes: 13 additions & 0 deletions ci/scripts/start-bosh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,22 @@ EOF
"${@}" > "${local_bosh_dir}/bosh-director.yml"

echo "Creating BOSH director environment (this may take several minutes)..." >&2
set +e
bosh create-env "${local_bosh_dir}/bosh-director.yml" \
--vars-store="${local_bosh_dir}/creds.yml" \
--state="${local_bosh_dir}/state.json"
create_env_rc=$?
set -e
if [ "$create_env_rc" -ne "0" ]; then
echo "" >&2
echo "ERROR: 'bosh create-env' failed." >&2
echo "This could be caused by a new version of the docker-cpi image which sets up the latest bosh and bosh-deployment releases that may introduce bugs." >&2
echo "You can:" >&2
echo " 1) Check the bosh release changelog for breaking changes" >&2
echo " 2) Communicate with the BOSH team to report/confirm the issue" >&2
echo " 3) Pin an older version of the docker-cpi image and start a new job" >&2
exit 1
fi

bosh int "${local_bosh_dir}/creds.yml" --path /director_ssl/ca > "${local_bosh_dir}/ca.crt"
bosh_client_secret="$(bosh int "${local_bosh_dir}/creds.yml" --path /admin_password)"
Expand Down