Skip to content

Commit 9f8bbe0

Browse files
author
Tim Etchells
committed
fix deploy script
1 parent 86aa4c5 commit 9f8bbe0

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

travis-scripts/deploy.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ env:
2020
- rc=true
2121
'
2222

23-
if [[ "$rc" != "true" && "$TRAVIS_EVENT_TYPE" != "cron" && -z "$TRAVIS_TAG" ]]; then
24-
echo "$(basename $0): not a release or cronjob, skipping deploy"
25-
exit 0
26-
elif [[ -z "$TRAVIS_TAG" && "$TRAVIS_BRANCH" != "master" ]]; then
27-
echo "$(basename $0): not a tag or master branch, skipping deploy"
28-
exit 0
23+
# Set force_deploy=true to skip deploy checks and always deploy.
24+
if [[ $force_deploy != "true" ]]; then
25+
if [[ "$rc" != "true" && "$TRAVIS_EVENT_TYPE" != "cron" && -z "$TRAVIS_TAG" ]]; then
26+
echo "$(basename $0): not a release or cronjob, skipping deploy"
27+
exit 0
28+
elif [[ -z "$TRAVIS_TAG" && "$TRAVIS_BRANCH" != "master" ]]; then
29+
echo "$(basename $0): not a tag or master branch, skipping deploy"
30+
exit 0
31+
fi
2932
fi
3033

3134
if [[ -n "$TRAVIS_TAG" ]]; then
@@ -69,4 +72,4 @@ if [[ "$artf_resp" != *"created"* ]]; then
6972
exit 1
7073
fi
7174

72-
curl -X PUT -sS -H "$artifactory_cred_header" -T "$build_info_file" "$artifactory_full_url/$build_info_file"
75+
curl -X PUT -sS -H "$artifactory_cred_header" -T "$build_info_file" "$artifactory_full_url/$build_info_file"

0 commit comments

Comments
 (0)