Skip to content

Instantly share code, notes, and snippets.

@mariash
Last active August 29, 2015 14:24
Show Gist options
  • Save mariash/6d1c0b93cf7d30ed4f18 to your computer and use it in GitHub Desktop.
Save mariash/6d1c0b93cf7d30ed4f18 to your computer and use it in GitHub Desktop.
consourse-loop
#!/usr/bin/env bash
source /etc/profile.d/chruby.sh
chruby 2.1.6
total_counter=0
success_counter=0
fail_counter=0
cd bosh-src
bundle install --local 1>/dev/null
cd release
while true; do
rm -rf .blobs
bundle exec bosh sync blobs 1>/dev/null
if [ $? -eq 0 ]; then
success_counter=$[$success_counter+1]
else
fail_counter=$[$fail_counter+1]
fi
total_counter=$[$total_counter+1]
echo "Total:" $total_counter "failed:" $fail_counter "success:" $success_counter
done
---
platform: linux
image: docker:///bosh/main
inputs:
- name: bosh-src
run:
path: bosh-src/ci/tasks/test-release.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment