summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-04-17 16:36:47 +0300
committerGitHub <noreply@github.com>2019-04-17 16:36:47 +0300
commit8bc815e376ef53ace43fa5e06c2a8e33b1ba2e0a (patch)
tree2076255c69cb3179de91015a2e49ad8947cf3eb9 /.travis.yml
parent5a9afa2f3f837924581904a448c3a2c7fbf32e3f (diff)
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
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index a71f11a2e5..35e33602c5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -89,6 +89,11 @@ jobs:
bucket: "netdata-nightlies"
skip_cleanup: true
local_dir: "artifacts"
+ on:
+ # Only deploy on netdata/netdata, master branch, when artifacts directory is created
+ repo: netdata/netdata
+ branch: master
+ condition: -d "artifacts"
after_deploy: rm -f .travis/gcs-credentials.json
- stage: Integrity testing