Files
hawkbit/.circleci/run-qa.sh
Bondar Bogdan afa1e4be21 specify explicit branch name for sonar (#1289)
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io>

Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io>
2022-10-21 14:46:47 +02:00

19 lines
688 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 javadoc:javadoc org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch.name=eclipse-master -Dsonar.login=$SONAR_ACCESS_TOKEN --batch-mode
else
mvn verify license:check javadoc:javadoc --batch-mode
fi