Skip to content

Commit

Permalink
Allow for all SQ 10 versions; even if dev only for 10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Topin2001 committed Jun 11, 2024
1 parent 50e8184 commit 1d5c828
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class ServerFactory {

/** List of SonarQube versions which are supported by cnesreport. */
private static final List<String> SUPPORTED_VERSIONS = Arrays.asList(
"8.9", "8.9.*", "9.9", "9.9.*", "10.5", "10.5.*");
"10.*", "10.*.*");

/** Url of the SonarQube server. */
private String url;
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/common/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getJSON, postJSON, post } from "sonar-request";

// Function used to get current SonarQube Server version
export function isCompatible() {
const COMPATIBILITY_PATTERN = /(8|9|10)(\.[5-9])(\.\d)*/; // To be change to the SQ 10 LTS
const COMPATIBILITY_PATTERN = /(10)(\.\d)(\.\d)*/; // To be change to the SQ 10 LTS

return getJSON("/api/system/status").then(response => {
return response.version.match(COMPATIBILITY_PATTERN) != null;
Expand Down

0 comments on commit 1d5c828

Please sign in to comment.