File tree 2 files changed +12
-1
lines changed
integrationTests/src/test/java/org/sonarqube/gradle
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ repositories {
72
72
73
73
dependencies {
74
74
compile gradleApi()
75
- compile ' org.sonarsource.scanner.api:sonar-scanner-api:2.12 .0.1661 '
75
+ compile ' org.sonarsource.scanner.api:sonar-scanner-api:2.14 .0.2002 '
76
76
compileOnly ' com.android.tools.build:gradle:3.1.0'
77
77
compileOnly ' com.google.code.findbugs:jsr305:3.0.2'
78
78
testCompile localGroovy()
Original file line number Diff line number Diff line change @@ -72,6 +72,17 @@ public void testSkip() throws Exception {
72
72
assertThat (result .getLog ()).contains ("SonarQube Scanner analysis skipped" );
73
73
}
74
74
75
+ @ Test
76
+ public void testHostUrlInEnv () throws Exception {
77
+ Map <String , String > env = new HashMap <>();
78
+ env .put ("SONAR_HOST_URL" , "http://host-in-env" );
79
+ RunResult result = runGradlewSonarQubeWithEnvQuietly ("/java-gradle-simple" , env );
80
+
81
+ System .out .println (result .getLog ());
82
+ assertThat (result .getExitValue ()).isEqualTo (1 );
83
+ assertThat (result .getLog ()).contains ("java.net.UnknownHostException: host-in-env" );
84
+ }
85
+
75
86
@ Test
76
87
public void testCompileOnly () throws Exception {
77
88
Properties props = runGradlewSonarQubeSimulationMode ("/java-compile-only" );
You can’t perform that action at this time.
0 commit comments