- SonarQube ITs need Java 17 to run
- Make sure your Developer Box is properly setup (see xtranet)
- Configure Orchestrator settings as described here. The Artifactory API key and GitHub token are the only mandatory options. The GH token is a Personal Access Token (classic) with the
reposcope permission, and SSO properly configured - Run
mvn clean installa first time from thisitsfolder so that test resources are built (like custom plugins)
- From the root folder of the repository, first build sonar-php with
mvn clean install. Without that the old JAR version from sonar-php-plugin/target will be used - Open a test class and run it
- From the root folder of the repository, first build sonar-php with
mvn clean install - Run
mvn verify -f its/pom.xml -Dsonar.runtimeVersion=<SQ server version>
To debug the Scanner in ITs set the SONAR_SCANNER_DEBUG_OPTS like this:
SonarScanner scanner = SonarScanner.create("projectDir")))
.setEnvironmentVariable("SONAR_SCANNER_DEBUG_OPTS", "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=<port>");
ORCHESTRATOR.executeBuild(scanner);The scanner will wait for a debug remote session to start.