Move scripts used by travis jobs under travis folder because when mirroring all scripts folders are excluded

(cherry picked from commit e7d25af3b4)
This commit is contained in:
cagache
2021-04-01 18:44:35 +03:00
committed by Cezar.Leahu
parent 662b047d78
commit 779190e5e9
19 changed files with 44 additions and 44 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# fail script immediately on any errors in external commands and print the lines
set -ev
mvn -B -q clean install \
-DskipTests \
-Dmaven.javadoc.skip=true \
-pl '!rm-automation,!rm-automation/rm-automation-community-rest-api,!rm-automation/rm-automation-enterprise-rest-api,!rm-automation/rm-automation-ui,!rm-benchmark' \
com.srcclr:srcclr-maven-plugin:scan \
-Dcom.srcclr.apiToken=$SRCCLR_API_TOKEN > scan.log
SUCCESS=$? # this will read exit code of the previous command
cat scan.log | grep -e 'Full Report Details' -e 'Failed'
exit ${SUCCESS}