Skip to content

Commit 47d23ca

Browse files
committed
Update CI/CD bosh2 -> bosh references
1 parent 7f6366b commit 47d23ca

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

ci/scripts/shipit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fi
6161
###############################################################
6262

6363
cd ${REPO_ROOT}
64-
RELEASE_NAME=$(bosh2 int config/final.yml --path /final_name)
64+
RELEASE_NAME=$(bosh int config/final.yml --path /final_name)
6565

6666
######
6767
######
@@ -80,8 +80,8 @@ YAML
8080
######
8181
######
8282
header "Creating final release..."
83-
bosh2 -n create-release --final --version "${VERSION}"
84-
bosh2 -n create-release releases/$RELEASE_NAME/$RELEASE_NAME-$VERSION.yml \
83+
bosh -n create-release --final --version "${VERSION}"
84+
bosh -n create-release releases/$RELEASE_NAME/$RELEASE_NAME-$VERSION.yml \
8585
--tarball releases/$RELEASE_NAME/$RELEASE_NAME-$VERSION.tgz
8686
cd -
8787

ci/scripts/testflight

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ fi
5555
######
5656
######
5757
header "Cleaning up any previous '${BOSH_DEPLOYMENT}' deployments..."
58-
bosh2 -n delete-deployment --force || true
58+
bosh -n delete-deployment --force || true
5959

6060
######
6161
######
6262
######
6363
header "Creating candidate BOSH release..."
64-
bosh2 -n reset-release # in case dev_releases/ is in repo accidentally
64+
bosh -n reset-release # in case dev_releases/ is in repo accidentally
6565
cat > config/private.yml <<YAML
6666
---
6767
blobstore:
@@ -70,18 +70,18 @@ blobstore:
7070
access_key_id: ${AWS_ACCESS_KEY}
7171
secret_access_key: ${AWS_SECRET_KEY}
7272
YAML
73-
bosh2 create-release
74-
bosh2 upload-release --rebase
73+
bosh create-release
74+
bosh upload-release --rebase
7575

7676
######
7777
######
7878
######
7979
header "Choosing cloud-config options"
80-
vm_type=$( bosh2 int <(bosh2 cloud-config) --path /vm_types/0/name)
81-
disk_type=$(bosh2 int <(bosh2 cloud-config) --path /disk_types/0/name)
82-
network=$( bosh2 int <(bosh2 cloud-config) --path /networks/0/name)
80+
vm_type=$( bosh int <(bosh cloud-config) --path /vm_types/0/name)
81+
disk_type=$(bosh int <(bosh cloud-config) --path /disk_types/0/name)
82+
network=$( bosh int <(bosh cloud-config) --path /networks/0/name)
8383

84-
release_name=$(bosh2 int config/final.yml --path /final_name)
84+
release_name=$(bosh int config/final.yml --path /final_name)
8585
release_version=$(spruce json dev_releases/*/index.yml | jq -r ".builds[].version" | sed -e "s%+.*%%")
8686

8787
######
@@ -127,21 +127,21 @@ done) > overrides.yml
127127
######
128128
######
129129
header "Deploying to ${BOSH_ENVIRONMENT}..."
130-
bosh2 -n deploy $MANIFEST_PATH -o overrides.yml
130+
bosh -n deploy $MANIFEST_PATH -o overrides.yml
131131

132132
######
133133
######
134134
######
135135
if [[ -n ${TEST_ERRAND:-} ]]; then
136136
header "Running '${TEST_ERRAND}' errand"
137-
bosh2 -n run-errand ${TEST_ERRAND}
137+
bosh -n run-errand ${TEST_ERRAND}
138138
fi
139139

140140
######
141141
######
142142
######
143143
header "Cleaning up testflight '${BOSH_DEPLOYMENT}' deployment..."
144-
bosh2 -n delete-deployment --force
144+
bosh -n delete-deployment --force
145145

146146
echo
147147
echo

ci/scripts/update-blob

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ EOF
6767
header "Performing cleanup on old blobs"
6868
remove=$(spruce json config/blobs.yml | jq -r "keys[] | select(test(\"${BLOB_CLEANUP}\"))")
6969
if [[ -n $remove ]]; then
70-
echo "$remove" | xargs -L1 bosh2 remove-blob
70+
echo "$remove" | xargs -L1 bosh remove-blob
7171
fi
7272

7373
######
@@ -97,17 +97,17 @@ eval "blob_dst=${BLOB_DESTINATION}"
9797
if [[ "$BLOB_BINARY" == "*" ]]; then
9898
for blob_src in ../${BLOB_DIR}/${BLOB_BINARY}; do
9999
base=${blob_src##*/}
100-
bosh2 add-blob "${blob_src}" "${blob_dst}/${base}"
100+
bosh add-blob "${blob_src}" "${blob_dst}/${base}"
101101
done
102102
else
103-
bosh2 add-blob "../${BLOB_DIR}/${BLOB_BINARY}" "${blob_dst}"
103+
bosh add-blob "../${BLOB_DIR}/${BLOB_BINARY}" "${blob_dst}"
104104
fi
105105

106106
######
107107
######
108108
######
109109
header "Uploading blobs to blobstore (AWS)"
110-
bosh2 -n upload-blobs
110+
bosh -n upload-blobs
111111
rm config/private.yml
112112
popd
113113

ci/scripts/wait-until-proxy-bosh-cf-running

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ if [[ "${PROXY_IP:-X}" != "X" ]]; then
4040
fi
4141

4242
header "Checking bosh available..."
43-
until bosh2 env; do
43+
until bosh env; do
4444
echo "Waiting until bosh available..."
4545
sleep 60
4646
done
4747

4848
if [[ -f git/tmp/vars.yml ]]; then
49-
cf_api_url=$(bosh2 int git/tmp/vars.yml --path /cf-api-url)
49+
cf_api_url=$(bosh int git/tmp/vars.yml --path /cf-api-url)
5050
if [[ "${cf_api_url:-X}" != "X" ]]; then
5151
header "Checking Cloud Foundry available..."
5252
until cf api $cf_api_url --skip-ssl-validation; do

0 commit comments

Comments
 (0)