From a809085ec3184d92fc72b3d0fd99cc0ea929457f Mon Sep 17 00:00:00 2001 From: Alex Mukha Date: Fri, 12 Apr 2019 20:11:31 +0100 Subject: [PATCH] Limit WhiteSource scan to support branches or master --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2c705fc7af..84acc903ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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