1
0
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:
Philip Germanov
2025-08-28 15:12:30 +03:00
parent 26a7bd4fdd
commit 3131d53741
4 changed files with 2 additions and 10 deletions

View File

@@ -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.",

View File

@@ -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",
},
},

View File

@@ -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"

View File

@@ -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: