From 485eee4bddae4d4f9251eba618b913d11945f75a Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 6 May 2015 18:07:50 +1000 Subject: [PATCH] Deploy scripts display their output --- script/ci/push_to_production.sh | 4 +++- script/ci/push_to_staging.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/script/ci/push_to_production.sh b/script/ci/push_to_production.sh index b731b538ca..8a8d4bf318 100755 --- a/script/ci/push_to_production.sh +++ b/script/ci/push_to_production.sh @@ -12,4 +12,6 @@ echo "--- Saving baseline data for staging" ssh ofn-staging2 "/home/openfoodweb/apps/openfoodweb/current/script/ci/save_staging_baseline.sh $BUILDKITE_COMMIT" echo "--- Pushing to production" -[[ $(git push production $BUILDKITE_COMMIT:master --force 2>&1) =~ "Done" ]] +output=$(git push production $BUILDKITE_COMMIT:master --force 2>&1) +echo $output +[[ $output =~ "Done" ]] diff --git a/script/ci/push_to_staging.sh b/script/ci/push_to_staging.sh index 582f500a76..0a5a11235a 100755 --- a/script/ci/push_to_staging.sh +++ b/script/ci/push_to_staging.sh @@ -16,4 +16,6 @@ echo "--- Loading baseline data" ssh ofn-staging2 "/home/openfoodweb/apps/openfoodweb/current/script/ci/load_staging_baseline.sh" echo "--- Pushing to staging" -[[ $(git push staging2 $BUILDKITE_COMMIT:master --force 2>&1) =~ "Done" ]] +output=$(git push staging2 $BUILDKITE_COMMIT:master --force 2>&1) +echo $output +[[ $output =~ "Done" ]]