Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Update ci-box-bats
Browse files Browse the repository at this point in the history
* Replace hardcoded virtualbox with BOX_TYPE
* Use CANDIDATE_BUILD_NUMBER instead of BUILD_NUMBER in box name

Signed-off-by: Kris Hicks <[email protected]>
  • Loading branch information
Andrei Dinin committed Sep 2, 2014
1 parent 599cab3 commit d2bd452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/ci-box-bats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ echo $CANDIDATE_BUILD_NUMBER
vagrant destroy local -f
rm -rf /var/lib/jenkins/.bosh_cache/* || true

vagrant box add bosh-lite-virtualbox-ubuntu-trusty-${CANDIDATE_BUILD_NUMBER}.box --name bosh-lite-ubuntu-trusty --force
vagrant up local --provider=virtualbox
vagrant box add bosh-lite-${BOX_TYPE}-ubuntu-trusty-${CANDIDATE_BUILD_NUMBER}.box --name bosh-lite-ubuntu-trusty --force
vagrant up local --provider=${BOX_TYPE}

./bin/add-route || true

Expand Down Expand Up @@ -73,4 +73,4 @@ EOF
bundle exec rake bat || bundle exec rake bat # remove after monit issue is fixed
)

s3cmd put -P bosh-lite-${BOX_TYPE}-ubuntu-trusty-${BUILD_NUMBER}.box s3://bosh-lite-build-artifacts/
s3cmd put -P bosh-lite-${BOX_TYPE}-ubuntu-trusty-${CANDIDATE_BUILD_NUMBER}.box s3://bosh-lite-build-artifacts/

0 comments on commit d2bd452

Please sign in to comment.