Limit WhiteSource scan to support branches or master

This commit is contained in:
Alex Mukha
2019-04-12 19:36:00 +01:00
parent 2c7ad57066
commit 696066cb08

View File

@@ -21,7 +21,7 @@ matrix:
script: travis_retry mvn test
- name: "WhiteSource scan"
# only on master and if it is not a PR
if: fork = false AND branch = master AND type != pull_request
if: fork = false AND (branch = master OR branch =~ /support\/.*/) AND type != pull_request
script:
# Download the latest version of WhiteSource Unified Agent
- curl -LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss-unified-agent.jar