Files
hawkbit/.circleci/sonarCircleCi.sh
Jeroen Laverman bcdfed8511 Add sonarqube for PRs (#755)
* Add sonarqube for PRs

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix path to script

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* Rename Token

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>

* fix script

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
2018-10-16 15:37:52 +02:00

19 lines
578 B
Bash
Executable File

#!/bin/sh
#
# Copyright (c) 2015 Bosch Software Innovations GmbH and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
#echo "$CIRCLE_PULL_REQUEST pull request"
# Run SonarQube only for master branch
if [ $CIRCLE_BRANCH = master ] ; then
mvn verify license:check sonar:sonar -Dsonar.login=$SONAR_ACCESS_TOKEN --batch-mode
else
mvn verify license:check --batch-mode
fi