You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
feat: update error messages for Checkmarx One and npm scripts for clarity and multi-module support
This commit is contained in:
@@ -457,11 +457,6 @@ func checkmarxOneExecuteScanMetadata() config.StepData {
|
||||
Aliases: []config.Alias{},
|
||||
Description: "checkmarxOne is the recommended tool for security scans of JavaScript, iOS, Swift and Ruby code.",
|
||||
Errors: []config.StepError{
|
||||
{
|
||||
Pattern: "Checkmarx One scan failed with the following error.*Scan Failed",
|
||||
Message: "Checkmarx One scan failed during execution. Check scan configuration and project settings.",
|
||||
Category: "scan",
|
||||
},
|
||||
{
|
||||
Pattern: "project .* not compliant",
|
||||
Message: "Project failed compliance checks. Review security findings and fix issues to meet compliance requirements.",
|
||||
|
@@ -330,7 +330,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
},
|
||||
{
|
||||
Pattern: "npm error code ENOENT.*package.json",
|
||||
Message: "Package.json file not found. Ensure package.json exists in the correct directory.",
|
||||
Message: "Package.json file not found. Ensure package.json exists in the correct directory. For multi-module projects, check if buildDescriptorList and buildDescriptorExcludeList are correct.",
|
||||
Category: "configuration",
|
||||
},
|
||||
},
|
||||
|
@@ -2,9 +2,6 @@ metadata:
|
||||
name: checkmarxOneExecuteScan
|
||||
description: checkmarxOne is the recommended tool for security scans of JavaScript, iOS, Swift and Ruby code.
|
||||
errors:
|
||||
- pattern: "Checkmarx One scan failed with the following error.*Scan Failed"
|
||||
message: "Checkmarx One scan failed during execution. Check scan configuration and project settings."
|
||||
category: "scan"
|
||||
- pattern: "project .* not compliant"
|
||||
message: "Project failed compliance checks. Review security findings and fix issues to meet compliance requirements."
|
||||
category: "compliance"
|
||||
|
@@ -29,7 +29,7 @@ metadata:
|
||||
message: "Package integrity check failed. Clear npm cache and retry installation."
|
||||
category: "dependency"
|
||||
- pattern: "npm error code ENOENT.*package.json"
|
||||
message: "Package.json file not found. Ensure package.json exists in the correct directory."
|
||||
message: "Package.json file not found. Ensure package.json exists in the correct directory. For multi-module projects, check if buildDescriptorList and buildDescriptorExcludeList are correct."
|
||||
category: "configuration"
|
||||
longDescription: >
|
||||
### Lock file detection:
|
||||
|
Reference in New Issue
Block a user