Skip to content
Snippets Groups Projects
Commit 047bc2e9 authored by joel.vonderwe's avatar joel.vonderwe
Browse files

Fix sonar success bug

parent 8957b259
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,7 @@ class AssignmentValidator {
this.newSubStep('SONAR_RUN', 'Run sonar analysis');
const runSuccess = SonarAnalyzer.runAnalysis(assignment.sonarKey, assignment.language, assignmentFile.buildLine);
if ( runSuccess ) {
if ( !runSuccess ) {
if ( !assignment.allowSonarFailure ) {
this.emitError(`Sonar gate failed`, 'Sonar analysis failure', AssignmentCheckerError.SONAR_ANALYSIS_FAILED);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment