mirror of
https://github.com/sonarsource/sonarcloud-github-action.git
synced 2026-06-06 01:47:07 +00:00
Perform Maven/Gradle check in the projectBaseDir (#19)
Co-authored-by: Tom <tom.vanbraband@sonarsource.com>
This commit is contained in:
parent
64d3b081fe
commit
156db6fef3
1 changed files with 2 additions and 2 deletions
|
|
@ -7,12 +7,12 @@ if [[ -z "${SONAR_TOKEN}" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -f "pom.xml" ]]; then
|
||||
if [[ -f "${INPUT_PROJECTBASEDIR%/}/pom.xml" ]]; then
|
||||
echo "Maven project detected. You should run the goal 'org.sonarsource.scanner.maven:sonar' during build rather than using this GitHub Action."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -f "build.gradle" ]]; then
|
||||
if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" ]]; then
|
||||
echo "Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action."
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue