Skip to content

Commit 3335ebe

Browse files
authored
Merge pull request hpsa#253 from eemanuelhpe/eli_fix_webhook
tech: allow user skip webhook creation
2 parents ac4893b + ab830e6 commit 3335ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microfocus/application/automation/tools/run/SonarOctaneListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnul
203203
} catch (SonarIntegrationException e) {
204204
logger.println("Webhook registration in sonarQube for build " + getBuildNumber(run) + " failed: " + e.getMessage());
205205
}
206-
run.addAction(new WebhookAction(true, getSonarServerUrl(), dataTypeSet));
207206
} else {
208207
logger.println("Webhook creation is skipped. Be sure that Sonar server " + this.sonarServerUrl + " has configured webhook to: " + callbackWebHooksURL);
209208
}
209+
run.addAction(new WebhookAction(true, getSonarServerUrl(), dataTypeSet));
210210
}
211211

212212
@Override

0 commit comments

Comments
 (0)