netdata/packaging/ci: Do not trigger deployment if certain conditions are not met (#5816)
I noticed the following scenario: https://api.travis-ci.com/v3/job/190900752/log.txt Basically nightlies run without any changes being committed, which resulted in job to fail. The GCS provider tried to push artifacts directory while the folder is not created, that should not happen. Changes, deploy only when: 1) repo is netdata/netdata 2) branch is master 3) artifacts directory exists
Paul Emm. Katsoulakis committed
Apr 17, 2019 at 16:36 UTC
8bc815e376ef53ace43fa5e06c2a8e33b1ba2e0a
1 file changed
+5
.travis.yml
+5
@@ -89,6 +89,11 @@ jobs:
89
bucket: "netdata-nightlies"
90
skip_cleanup: true
91
local_dir: "artifacts"
92
+ on:
93
+ # Only deploy on netdata/netdata, master branch, when artifacts directory is created
94
+ repo: netdata/netdata
95
+ branch: master
96
+ condition: -d "artifacts"
97
after_deploy: rm -f .travis/gcs-credentials.json
98
99
- stage: Integrity testing