Add file exclusions to script
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
echo $CI_PULL_REQUEST pull request
|
echo $CI_PULL_REQUEST pull request
|
||||||
# regular sonar on master
|
# regular sonar on master
|
||||||
if [ "$CIRCLE_BRANCH" = "master" ]; then
|
if [ "$CIRCLE_BRANCH" = "master" ]; then
|
||||||
mvn verify license:check sonar:sonar -Dsonar.login=$SONAR_SERVER_USER -Dsonar.password=$SONAR_SERVER_PASSWD
|
mvn verify license:check sonar:sonar -Dsonar.login=$SONAR_SERVER_USER -Dsonar.password=$SONAR_SERVER_PASSWD -Dsonar.exclusions=**/target/generated-sources/apt/**,**/src/test/**,**/src/main/java/org/eclipse/hawkbit/repository/test/** -Dsonar.coverage.exclusions=**/src/main/java/org/eclipse/hawkbit/ui/**,**/target/generated-sources/apt/**,**/src/main/java/org/eclipse/hawkbit/repository/test/**
|
||||||
# preview in case of pull request - disabled as circle does not fill those with pull reuqests from different directories
|
# preview in case of pull request - disabled as circle does not fill those with pull reuqests from different directories
|
||||||
else
|
else
|
||||||
#if [ -n "$CI_PULL_REQUEST" ]; then
|
#if [ -n "$CI_PULL_REQUEST" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user