File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 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
2932fi
3033
3134if [[ -n " $TRAVIS_TAG " ]]; then
@@ -69,4 +72,4 @@ if [[ "$artf_resp" != *"created"* ]]; then
6972 exit 1
7073fi
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 "
You can’t perform that action at this time.
0 commit comments