Skip to content

Commit

Permalink
SLCORE-1064 Fix the loading of sonar-text analyzer in Connected Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nquinquenel committed Dec 3, 2024
1 parent 1d3477e commit 38375f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public boolean supportsCustomSecrets(String connectionId) {
return false;
}
// when storage is not present, assume that secrets are not supported by server
return connection.getKind() != ConnectionKind.SONARCLOUD && storageService.connection(connectionId).serverInfo().read()
return connection.getKind() != ConnectionKind.SONARCLOUD || storageService.connection(connectionId).serverInfo().read()
.map(serverInfo -> serverInfo.getVersion().compareToIgnoreQualifier(CUSTOM_SECRETS_MIN_SQ_VERSION) >= 0)
.orElse(false);
}
Expand Down

0 comments on commit 38375f9

Please sign in to comment.