Limit WhiteSource scan to support branches or master

This commit is contained in:
Alex Mukha
2019-04-12 20:11:31 +01:00
parent d2ff869c19
commit a809085ec3

View File

@@ -20,8 +20,8 @@ matrix:
- name: "Build and test"
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
# only on support branches or master and if it is not a PR
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