Skip to content

Commit

Permalink
update shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
dedece35 committed Jan 1, 2025
1 parent 03d167e commit c2900c5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tool_send_to_sonar.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env sh

# "sonar.token" variable (or sonar.login before SONARQUBE 9.9) : private TOKEN generated in your local SonarQube during installation
# "sonar.token" variable : private TOKEN generated in your local SonarQube during installation
# (input paramater of this script)
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar -Dsonar.host.url=http://localhost:$1 -Dsonar.token=$2

# command if you have a SONARQUBE < 9.9 (sonar.token existing for SONARQUBE >= 10.0)
# mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar -Dsonar.login=$1
# "sonar.login" variable : for a SONARQUBE < 10.0
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar -Dsonar.host.url=http://localhost:$1 -Dsonar.token=$2 -Dsonar.login=$2

0 comments on commit c2900c5

Please sign in to comment.