From 6cbc90da5000a97dc351aa66d3e80180fc94b454 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 7 Aug 2017 17:24:35 -0700 Subject: [PATCH] Only upload nightly if on master branch --- scripts/circle-test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/circle-test.sh b/scripts/circle-test.sh index 4c3788e76..bf5b44eab 100755 --- a/scripts/circle-test.sh +++ b/scripts/circle-test.sh @@ -87,6 +87,11 @@ elif [ -n "${PACKAGE}" ]; then # install boto & rpm (packaging & AWS dependencies) exit_if_fail sudo apt-get install -y rpm python-boto unset GOGC - exit_if_fail ./scripts/build.py --nightly --package --platform=all --arch=all --upload --bucket=dl.influxdata.com/telegraf/nightlies + if [ "$(git rev-parse --abbrev-ref HEAD)" = master ] + then + exit_if_fail ./scripts/build.py --nightly --package --platform=all --arch=all --upload --bucket=dl.influxdata.com/telegraf/nightlies + else + exit_if_fail ./scripts/build.py --package --platform=all --arch=all + fi mv build $CIRCLE_ARTIFACTS fi