File tree Expand file tree Collapse file tree 3 files changed +3
-20
lines changed
plugin/src/test/java/org/sonarsource/slang
ruling/src/test/java/org/sonarsource/slang Expand file tree Collapse file tree 3 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ subprojects {
155
155
(it.startsWith(" orchestrator" ) || it.startsWith(" sonar" ) || it == " buildNumber" || it == " slangVersion" )
156
156
}.mapKeys { it.key as String }
157
157
158
+ // TODO remove:
158
159
if (systemProperties.containsKey(" buildNumber" ) && ! systemProperties.containsKey(" slangVersion" )) {
159
160
systemProperties[" slangVersion" ] = version
160
161
}
Original file line number Diff line number Diff line change @@ -52,19 +52,10 @@ public class TestsHelper {
52
52
}
53
53
54
54
static void addLanguagePlugins (OrchestratorBuilder builder ) {
55
- String slangVersion = System .getProperty ("slangVersion" );
56
-
57
55
LANGUAGES .forEach (language -> {
58
56
Location pluginLocation ;
59
57
String plugin = "sonar-" + language +"-plugin" ;
60
- if (slangVersion == null || slangVersion .isEmpty ()) {
61
- // use the plugin that was built on local machine
62
- pluginLocation = FileLocation .byWildcardMavenFilename (new File ("../../" + plugin + "/build/libs" ), plugin + ".jar" );
63
- } else {
64
- // QA environment downloads the plugin built by the CI job
65
- pluginLocation = MavenLocation .of ("org.sonarsource.kotlin" , plugin , slangVersion );
66
- }
67
-
58
+ pluginLocation = FileLocation .byWildcardMavenFilename (new File ("../../" + plugin + "/build/libs" ), plugin + ".jar" );
68
59
builder .addPlugin (pluginLocation );
69
60
});
70
61
}
Original file line number Diff line number Diff line change @@ -83,19 +83,10 @@ public static void setUp() {
83
83
}
84
84
85
85
private static void addLanguagePlugins (OrchestratorBuilder builder ) {
86
- String slangVersion = System .getProperty ("slangVersion" );
87
-
88
86
LANGUAGES .forEach (language -> {
89
87
Location pluginLocation ;
90
88
String plugin = "sonar-" + language +"-plugin" ;
91
- if (slangVersion == null || slangVersion .isEmpty ()) {
92
- // use the plugin that was built on local machine
93
- pluginLocation = FileLocation .byWildcardMavenFilename (new File ("../../" + plugin + "/build/libs" ), plugin + ".jar" );
94
- } else {
95
- // QA environment downloads the plugin built by the CI job
96
- pluginLocation = MavenLocation .of ("org.sonarsource.kotlin" , plugin , slangVersion );
97
- }
98
-
89
+ pluginLocation = FileLocation .byWildcardMavenFilename (new File ("../../" + plugin + "/build/libs" ), plugin + ".jar" );
99
90
builder .addPlugin (pluginLocation );
100
91
});
101
92
}
You can’t perform that action at this time.
0 commit comments