Skip to content

SCANCLI-176 Add support for the SonarQube Cloud US region #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<!-- following properties must be set in command-line : sonar.runtimeVersion and sonarRunner.version -->

<maven.compiler.release>17</maven.compiler.release>
<orchestrator.version>5.1.0.2274</orchestrator.version>
<orchestrator.version>5.3.0.2465</orchestrator.version>
</properties>

<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void should_use_environment_prop() {

assertThat(buildResult.isSuccess()).isFalse();
assertThat(buildResult.getLogs())
.contains("Failed to query server version: HTTP 404 Not Found");
.contains("Failed to query server version: GET http://www.google.com/404/api/server/version failed with HTTP 404 Not Found");
}

@Test
Expand All @@ -207,7 +207,7 @@ public void should_skip_analysis() {
@Test
public void should_fail_if_unable_to_connect() {
SonarScanner build = newScannerWithToken(new File("projects/simple-sample"), analysisToken)
//env property should be overridden
//env property should be overridden by command line property
.setEnvironmentVariable("SONAR_HOST_URL", "http://www.google.com")
.setProperty("sonar.host.url", "http://www.google.com/404");

Expand All @@ -216,7 +216,7 @@ public void should_fail_if_unable_to_connect() {
assertThat(result.isSuccess()).isFalse();
// with the following message
assertThat(result.getLogs())
.contains("Failed to query server version: HTTP 404 Not Found");
.contains("Failed to query server version: GET http://www.google.com/404/api/server/version failed with HTTP 404 Not Found");
}

// SONARPLUGINS-3574
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<dependency>
<groupId>org.sonarsource.scanner.lib</groupId>
<artifactId>sonar-scanner-java-library</artifactId>
<version>3.2.2.411</version>
<version>3.3.1.450</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down