Skip to content

Commit

Permalink
Merge pull request #248 from checkmarx-ltd/2024_Q1_Integration_Branch
Browse files Browse the repository at this point in the history
Jenkins Plugin Release Plugin Version 2024.1.2
  • Loading branch information
ThokalSameer authored Apr 12, 2024
2 parents f48efbc + 15357f9 commit 3b9c0d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cx/restclient/ast/AstScaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ public Results waitForScanResults() {
}

fileName = PDF_REPORT_NAME + "_" + now + "." + reportFormat.toLowerCase();
String pdfLink = SASTUtils.writePDFReport(scanReport, config.getReportsDir(), fileName, log);
if (reportFormat.toLowerCase().equals("pdf")) {
String pdfLink = SASTUtils.writePDFReport(scanReport, config.getReportsDir(), fileName, log);
scaResults.setScaPDFLink(pdfLink);
scaResults.setPdfFileName(fileName);
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/cx/restclient/sast/utils/LegacyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ public long resolveProjectId() throws IOException {
}
} else {
projectId = projects.get(0).getId();
if(config.isEnableDataRetention()) {
setRetentionRate(projectId);
}
setIsNewProject(false);
log.info("Project already exists with ID {}", projectId);
}
Expand Down

0 comments on commit 3b9c0d3

Please sign in to comment.