Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/checkmarx/jenkins/CxScanBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ private void printConfiguration(CxScanConfig config, CxLoggerAdapter log) {
log.info("enable Project Policy Enforcement: " + config.getEnablePolicyViolations());
log.info("continue build when timed out: " + config.getContinueBuild());
log.info("post scan action: " + config.getPostScanActionId());
log.info("is force scan: " + config.getForceScan());
//log.info("is force scan: " + config.getForceScan());
log.info("scan level custom fields: " + config.getCustomFields());

ScannerType scannerType = getDependencyScannerType(config);
Expand Down Expand Up @@ -2552,7 +2552,7 @@ public FormValidation doCheckCustomFields(@QueryParameter String value,@Ancestor
Pattern pattern = Pattern.compile("(^([a-zA-Z0-9#._]*):([a-zA-Z0-9#._]*)+(,([a-zA-Z0-9#._]*):([a-zA-Z0-9#._]*)+)*$)");
Matcher match = pattern.matcher(value);
if (!StringUtil.isNullOrEmpty(value) && !match.find()) {
return FormValidation.error("Custom Fields must have given format: key1:val1,key2:val2. \nCustom field allows to use these special characters: # . _ ");
return FormValidation.error("Custom Fields must have given format: key1:val1,key2:val2. Custom field allows to use these special characters: # . _ ");
}

return FormValidation.ok();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@
<j:if test="${result.isRemoveAsyncHtml()}">
<div id="async-note">
<div class="async-note"><div class="async-note-title">Note:</div>
<div class="async-note-body" id="async-note-body">Job is configured to run Checkmarx scan asynchronously. Displayed results are of the previous successful scan.</div></div>
</div>
<div>
${result.getHtmlReport()}
<div class="async-note-body" id="async-note-body">Job is configured to run Checkmarx scan asynchronously.</div></div>
</div>

</j:if>

<j:if test="${!result.isRemoveAsyncHtml()}">
Expand Down