Skip to content

Commit

Permalink
fix for bitbucket commit (#1358)
Browse files Browse the repository at this point in the history
Co-authored-by: Satyam Chaurasia <[email protected]>
  • Loading branch information
1 parent e924401 commit a8dbb2d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/com/checkmarx/flow/service/ResultsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,40 +147,40 @@ public void processResults(ScanRequest request, ScanResults results, ScanDetails
log.info("Results Service case JIRA : request =: {} results = {} scanDetails= {}", request.toString(), results.toString(), scanDetails.toString());
break;
case GITHUBPULL:
if (gitService.isScanSubmittedComment()) {
if (gitService.isScanSubmittedComment() && request.getScanSubmittedComment()) {
gitService.processPull(request, results);
gitService.endBlockMerge(request, results, scanDetails);
}
break;
case GITLABCOMMIT:
if (gitLabService.isScanSubmittedComment()) {
if (gitLabService.isScanSubmittedComment() && request.getScanSubmittedComment() ) {
gitLabService.processCommit(request, results);
}
break;
case GITLABMERGE:
if (gitLabService.isScanSubmittedComment()) {
if (gitLabService.isScanSubmittedComment() && request.getScanSubmittedComment()) {
gitLabService.processMerge(request, results);
gitLabService.endBlockMerge(request);
}
break;
case BITBUCKETCOMMIT:
if (bbService.isScanSubmittedComment()) {
if (bbService.isScanSubmittedComment() && request.getScanSubmittedComment()) {
bbService.processCommit(request, results);
}
break;
case BITBUCKETPULL:
if (bbService.isScanSubmittedComment()) {
if (bbService.isScanSubmittedComment() && request.getScanSubmittedComment()) {
bbService.processMerge(request, results);
}
break;
case BITBUCKETSERVERPULL:
if (bbService.isScanSubmittedComment()) {
if (bbService.isScanSubmittedComment() && request.getScanSubmittedComment()) {
bbService.processServerMerge(request, results, scanDetails);
bbService.setBuildEndStatus(request, results, scanDetails);
}
break;
case ADOPULL:
if (adoService.isScanSubmittedComment()) {
if (adoService.isScanSubmittedComment() && request.getScanSubmittedComment()) {
adoService.processPull(request, results);
adoService.endBlockMerge(request, results, scanDetails);
}
Expand Down

0 comments on commit a8dbb2d

Please sign in to comment.