Skip to content

Commit 68f2f75

Browse files
committed
[CI] Change references from bosh2 to bosh
1 parent 52b3ec8 commit 68f2f75

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

ci/scripts/shipit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4747
###############################################################
4848

4949
cd ${REPO_ROOT}
50-
RELEASE_NAME=$(bosh2 int config/final.yml --path /final_name)
50+
RELEASE_NAME=$(bosh int config/final.yml --path /final_name)
5151

5252
cat > config/private.yml <<YAML
5353
---
@@ -62,8 +62,8 @@ header "Pulling in any git submodules..."
6262
git submodule update --init --recursive --force
6363

6464
header "Create final release..."
65-
bosh2 -n create-release --final --version "${VERSION}"
66-
bosh2 -n create-release releases/$RELEASE_NAME/$RELEASE_NAME-$VERSION.yml \
65+
bosh -n create-release --final --version "${VERSION}"
66+
bosh -n create-release releases/$RELEASE_NAME/$RELEASE_NAME-$VERSION.yml \
6767
--tarball releases/$RELEASE_NAME/$RELEASE_NAME-$VERSION.tgz
6868
cd -
6969

ci/scripts/testflight

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ci/scripts/testflight
44
#
5-
# Script for testing a BOSH release using bosh2
5+
# Script for testing a BOSH release using bosh
66
#
77
# author: James Hunt <[email protected]>
88

@@ -66,10 +66,10 @@ fi
6666

6767

6868
header "Cleaning up from any previous deployments..."
69-
bosh2 -n delete-deployment
69+
bosh -n delete-deployment
7070

7171
header "Creating candidate BOSH release..."
72-
bosh2 -n reset-release # in case dev_releases/ is in repo accidentally
72+
bosh -n reset-release # in case dev_releases/ is in repo accidentally
7373

7474
cat > config/private.yml <<YAML
7575
---
@@ -79,16 +79,16 @@ blobstore:
7979
access_key_id: ${AWS_ACCESS_KEY}
8080
secret_access_key: ${AWS_SECRET_KEY}
8181
YAML
82-
bosh2 create-release
83-
bosh2 upload-release --rebase
82+
bosh create-release
83+
bosh upload-release --rebase
8484

8585
header "Deploying to ${BOSH_ENVIRONMENT}..."
86-
release_name=$(bosh2 int config/final.yml --path /final_name)
86+
release_name=$(bosh int config/final.yml --path /final_name)
8787

8888
header "Choosing cloud-config options"
89-
vm_type=$(bosh2 int <(bosh2 cloud-config) --path /vm_types/0/name)
90-
disk_type=$(bosh2 int <(bosh2 cloud-config) --path /disk_types/0/name)
91-
network=$(bosh2 int <(bosh2 cloud-config) --path /networks/0/name)
89+
vm_type=$(bosh int <(bosh cloud-config) --path /vm_types/0/name)
90+
disk_type=$(bosh int <(bosh cloud-config) --path /disk_types/0/name)
91+
network=$(bosh int <(bosh cloud-config) --path /networks/0/name)
9292

9393
release_final_version=$(spruce json dev_releases/*/index.yml | jq -r ".builds[].version" | sed -e "s%+.*%%")
9494
release_dev_version="${release_final_version}.latest"
@@ -129,30 +129,30 @@ done
129129

130130
set -x
131131

132-
bosh2 int ${MANIFEST_PATH} \
132+
bosh int ${MANIFEST_PATH} \
133133
-o tmp/deployment.yml \
134134
${op_patch_files_flags} \
135135
--vars-store tmp/creds.yml \
136136
--vars-file tmp/vars.yml \
137137
--var-errs \
138138
> tmp/manifest.yml
139139

140-
bosh2 -n deploy tmp/manifest.yml
140+
bosh -n deploy tmp/manifest.yml
141141

142142
TEST_ERRAND=${TEST_ERRAND:-} # backwards compatibility
143143
TEST_ERRANDS=${TEST_ERRANDS:-$TEST_ERRAND}
144144
if [[ -n ${TEST_ERRANDS} ]]; then
145145
for errand in ${TEST_ERRANDS}; do
146146
header "Running '${errand}' errand"
147-
bosh2 -n run-errand ${errand}
147+
bosh -n run-errand ${errand}
148148
done
149149
else
150150
echo "No test errands specified, skipping."
151151
fi
152152

153153
if [[ -z ${SKIP_DELETE_DEPLOYMENT:-} ]]; then
154154
header "Cleaning up after successful deployment..."
155-
bosh2 -n delete-deployment
155+
bosh -n delete-deployment
156156
else
157157
header "Skipping cleanup of successful deployment."
158158
fi

ci/scripts/update-blob

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ EOF
2323

2424
blobs_to_remove=$(spruce json config/blobs.yml | jq -r "keys[] | select(test(\"${BLOB_CLEANUP}\"))")
2525
if [[ ! -z $blobs_to_remove ]]; then
26-
echo "$blobs_to_remove" | xargs -L1 bosh2 remove-blob
26+
echo "$blobs_to_remove" | xargs -L1 bosh remove-blob
2727
fi
2828

2929
# expand ${VERSION} env var into file path
3030
eval "blob_destination=${BLOB_DESTINATION}"
31-
bosh2 add-blob ../${BLOB_DIR}/${BLOB_BINARY} "${blob_destination}"
32-
bosh2 -n upload-blobs
31+
bosh add-blob ../${BLOB_DIR}/${BLOB_BINARY} "${blob_destination}"
32+
bosh -n upload-blobs
3333
rm config/private.yml
3434
popd
3535

0 commit comments

Comments
 (0)