Skip to content

Commit 4b9392b

Browse files
committed
JS-1005 sonar-jasmine-plugin to follow dev/release versioning (#6102)
1 parent 4b09de0 commit 4b9392b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/PRAnalysisTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ private static Measures getMeasures(String componentKey, String branch, String p
193193

194194
@BeforeAll
195195
static void startOrchestrator() {
196+
var version = System.getProperty("sonar.runtimeVersion", "LATEST_RELEASE");
196197
var builder = OrchestratorExtension.builderEnv()
197198
.useDefaultAdminCredentialsForBuilds(true)
198-
.setSonarVersion(System.getProperty("sonar.runtimeVersion", "LATEST_RELEASE"))
199+
.setSonarVersion(version)
199200
.addPlugin(JAVASCRIPT_PLUGIN_LOCATION)
200201
.addPlugin(
201202
FileLocation.byWildcardMavenFilename(
@@ -205,10 +206,8 @@ static void startOrchestrator() {
205206
)
206207
.setEdition(Edition.ENTERPRISE_LW)
207208
.activateLicense()
208-
.addPlugin(MavenLocation.of("com.sonarsource.armor", "sonar-jasmin-plugin", "DEV"))
209-
.addPlugin(
210-
MavenLocation.of("org.sonarsource.config", "sonar-config-plugin", "LATEST_RELEASE")
211-
);
209+
.addPlugin(MavenLocation.of("com.sonarsource.armor", "sonar-jasmin-plugin", version))
210+
.addPlugin(MavenLocation.of("org.sonarsource.config", "sonar-config-plugin", version));
212211

213212
for (var projectTestCase : TestProject.values()) {
214213
builder.restoreProfileAtStartup(FileLocation.ofClasspath(projectTestCase.getProfileFile()));

0 commit comments

Comments
 (0)