Limit releases to support/* or master [skip ci]

This commit is contained in:
Alex Mukha
2019-06-05 21:45:53 +01:00
parent 5d5551d065
commit ccf23e9836

View File

@@ -34,7 +34,7 @@ jobs:
- java -jar wss-unified-agent.jar -apiKey ${WHITESOURCE_API_KEY} -c .wss-unified-agent.config
- stage: release
name: "Push to Nexus"
if: fork = false AND branch = master AND type != pull_request AND commit_message !~ /\[no-release\]/
if: fork = false AND (branch = master OR branch =~ /support\/.*/) AND type != pull_request AND commit_message !~ /\[no-release\]/
before_install:
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
script: