-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
Jenkins 2.401.3
Veracode Scan Version23.7.22.0
Running a Jenkins file using the veracode plugin to perform an Upload and Scan with Veracode Pipeline, using the recommended snippet generated by the Snippet Generator fails due to:
Parsing error(s):
-filepath is required for the selected action.
I even tried adding filePath as a parameter and that does not add -filepath to the arguments and also fails:
withCredentials([usernamePassword(credentialsId: 'veracode-credentials', passwordVariable: 'veracode_password', usernameVariable: 'vercode_api_key')]) { veracode applicationName: VERACODE_NAME, canFailJob: true, waitForScan: true, unstableBuild: true, createSandbox: true, debug: true, deleteIncompleteScanLevel: '0', criticality: 'Medium', fileNamePattern: '', replacementPattern: '', sandboxName: "${POM_ARTIFACTID}-${params.ENV}", scanName: "${VERSION}${REVISION}-${ENV_US_EN}", teams: 'Data-Survey/Compiled', uploadIncludesPattern: "**/**-${ENV_US_EN}.war", scanExcludesPattern: '', scanIncludesPattern: '', filePath: "{$env.WORKSPACE}", useProxy: true, vid: vercode_api_key, vkey: veracode_password }
WARNING: Unknown parameter(s) found for class type 'com.veracode.jenkins.plugin.VeracodePipelineRecorder': filePath
------------------------------------------------------------------------
Upload and Scan with Veracode Pipeline
------------------------------------------------------------------------
[Debug mode is on]
Can Fail Job: true
Show Unstable Status for Failed Policy Evaluation: true
Version information:
VeracodeJavaAPI v23.4.11.2 cUnknown
HPI location: var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jarProcessing files in [local] workspace: /local2/jenkins/workspace/SVWebAppBuilding arguments. Calling wrapper with arguments:
[-action, UploadAndScan, -vid, ********, -vkey, ********, -phost, ********, -pport, ********, -appname, Shoppers Voice (ICOM), -createprofile, false, -teams, Data-Survey/Compiled, -criticality, Medium, -sandboxname, SVWebApp-DEV, -createsandbox, true, -version, 2.0-SNAPSHOT-us_en_dev, -autoscan, true, -deleteincompletescan, 0, -maxretrycount, 5, -debug, -useragent, VeracodeScanJenkins/23.7.22.0 (Jenkins/2.401.3; Java/Unknown)]
VeracodeJavaAPI v23.4.11.2 cUnknown
Parsing error(s):
-filepath is required for the selected action.
The following parameters are optional for the selected action:
-autorecreate -exclude
-format -include
-includenewmodules -inputfilepath
-logfilepath -pattern
-ppassword -puser
-replacement -sandboxid
-scanallnonfataltoplevelmodules -scanpollinginterval
-scantimeout -selected
-selectedpreviously -toplevel
[2023.08.24 13:26:00.499] Invalid input
Error- Returned code from wrapper:1
[JENKINS-71885] The Veracode Scan plugin fails due to -filepath is required with no way to set it
Description |
Original:
Running a Jenkins file using the veracode plugin to perform an Upload and Scan with Veracode Pipeline, using the recommended snippet generated by the Snippet Generator fails due to:
Parsing error(s): -filepath is required for the selected action. I even tried adding filePath as a parameter and that does not add -filepath to the arguments and also fails: {code:java} withCredentials([usernamePassword(credentialsId: 'veracode-credentials', passwordVariable: 'veracode_password', usernameVariable: 'vercode_api_key')]) { veracode applicationName: VERACODE_NAME, canFailJob: true, waitForScan: true, unstableBuild: true, createSandbox: true, debug: true, deleteIncompleteScanLevel: '0', criticality: 'Medium', fileNamePattern: '', replacementPattern: '', sandboxName: "${POM_ARTIFACTID}-${params.ENV}", scanName: "${VERSION}${REVISION}-${ENV_US_EN}", teams: 'Data-Survey/Compiled', uploadIncludesPattern: "**/**-${ENV_US_EN}.war", scanExcludesPattern: '', scanIncludesPattern: '', filePath: "{$env.WORKSPACE}", useProxy: true, vid: vercode_api_key, vkey: veracode_password }{code} WARNING: Unknown parameter(s) found for class type 'com.veracode.jenkins.plugin.VeracodePipelineRecorder': filePath ------------------------------------------------------------------------ Upload and Scan with Veracode Pipeline ------------------------------------------------------------------------ [Debug mode is on] Can Fail Job: true Show Unstable Status for Failed Policy Evaluation: true Version information: VeracodeJavaAPI v23.4.11.2 cUnknown HPI location: [var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jar|file://var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jar]Processing files in [local] workspace: [/local2/jenkins/workspace/SVWebApp|file:///local2/jenkins/workspace/SVWebApp]Building arguments. Calling wrapper with arguments: [-action, UploadAndScan, -vid, 2ef4398b0ba64efcace27d419194689c, -vkey, ********, -phost, 10.211.128.0, -pport, 80, -appname, Shoppers Voice (ICOM), -createprofile, false, -teams, Data-Survey/Compiled, -criticality, Medium, -sandboxname, SVWebApp-DEV, -createsandbox, true, -version, 2.0-SNAPSHOT-us_en_dev, -autoscan, true, -deleteincompletescan, 0, -maxretrycount, 5, -debug, -useragent, VeracodeScanJenkins/23.7.22.0 (Jenkins/2.401.3; Java/Unknown)] VeracodeJavaAPI v23.4.11.2 cUnknown Parsing error(s): -filepath is required for the selected action. The following parameters are optional for the selected action: -autorecreate -exclude -format -include -includenewmodules -inputfilepath -logfilepath -pattern -ppassword -puser -replacement -sandboxid -scanallnonfataltoplevelmodules -scanpollinginterval -scantimeout -selected -selectedpreviously -toplevel [2023.08.24 13:26:00.499] Invalid input Error- Returned code from wrapper:1 |
New:
Running a Jenkins file using the veracode plugin to perform an Upload and Scan with Veracode Pipeline, using the recommended snippet generated by the Snippet Generator fails due to:
Parsing error(s): -filepath is required for the selected action. I even tried adding filePath as a parameter and that does not add -filepath to the arguments and also fails: {code:java} withCredentials([usernamePassword(credentialsId: 'veracode-credentials', passwordVariable: 'veracode_password', usernameVariable: 'vercode_api_key')]) { veracode applicationName: VERACODE_NAME, canFailJob: true, waitForScan: true, unstableBuild: true, createSandbox: true, debug: true, deleteIncompleteScanLevel: '0', criticality: 'Medium', fileNamePattern: '', replacementPattern: '', sandboxName: "${POM_ARTIFACTID}-${params.ENV}", scanName: "${VERSION}${REVISION}-${ENV_US_EN}", teams: 'Data-Survey/Compiled', uploadIncludesPattern: "**/**-${ENV_US_EN}.war", scanExcludesPattern: '', scanIncludesPattern: '', filePath: "{$env.WORKSPACE}", useProxy: true, vid: vercode_api_key, vkey: veracode_password }{code} WARNING: Unknown parameter(s) found for class type 'com.veracode.jenkins.plugin.VeracodePipelineRecorder': filePath ------------------------------------------------------------------------ Upload and Scan with Veracode Pipeline ------------------------------------------------------------------------ [Debug mode is on] Can Fail Job: true Show Unstable Status for Failed Policy Evaluation: true Version information: VeracodeJavaAPI v23.4.11.2 cUnknown HPI location: [var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jar|file://var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jar]Processing files in [local] workspace: [/local2/jenkins/workspace/SVWebApp|file:///local2/jenkins/workspace/SVWebApp]Building arguments. Calling wrapper with arguments: [-action, UploadAndScan, -vid, ********, -vkey, ********, -phost, 10.211.128.0, -pport, 80, -appname, Shoppers Voice (ICOM), -createprofile, false, -teams, Data-Survey/Compiled, -criticality, Medium, -sandboxname, SVWebApp-DEV, -createsandbox, true, -version, 2.0-SNAPSHOT-us_en_dev, -autoscan, true, -deleteincompletescan, 0, -maxretrycount, 5, -debug, -useragent, VeracodeScanJenkins/23.7.22.0 (Jenkins/2.401.3; Java/Unknown)] VeracodeJavaAPI v23.4.11.2 cUnknown Parsing error(s): -filepath is required for the selected action. The following parameters are optional for the selected action: -autorecreate -exclude -format -include -includenewmodules -inputfilepath -logfilepath -pattern -ppassword -puser -replacement -sandboxid -scanallnonfataltoplevelmodules -scanpollinginterval -scantimeout -selected -selectedpreviously -toplevel [2023.08.24 13:26:00.499] Invalid input Error- Returned code from wrapper:1 |
Description |
Original:
Running a Jenkins file using the veracode plugin to perform an Upload and Scan with Veracode Pipeline, using the recommended snippet generated by the Snippet Generator fails due to:
Parsing error(s): -filepath is required for the selected action. I even tried adding filePath as a parameter and that does not add -filepath to the arguments and also fails: {code:java} withCredentials([usernamePassword(credentialsId: 'veracode-credentials', passwordVariable: 'veracode_password', usernameVariable: 'vercode_api_key')]) { veracode applicationName: VERACODE_NAME, canFailJob: true, waitForScan: true, unstableBuild: true, createSandbox: true, debug: true, deleteIncompleteScanLevel: '0', criticality: 'Medium', fileNamePattern: '', replacementPattern: '', sandboxName: "${POM_ARTIFACTID}-${params.ENV}", scanName: "${VERSION}${REVISION}-${ENV_US_EN}", teams: 'Data-Survey/Compiled', uploadIncludesPattern: "**/**-${ENV_US_EN}.war", scanExcludesPattern: '', scanIncludesPattern: '', filePath: "{$env.WORKSPACE}", useProxy: true, vid: vercode_api_key, vkey: veracode_password }{code} WARNING: Unknown parameter(s) found for class type 'com.veracode.jenkins.plugin.VeracodePipelineRecorder': filePath ------------------------------------------------------------------------ Upload and Scan with Veracode Pipeline ------------------------------------------------------------------------ [Debug mode is on] Can Fail Job: true Show Unstable Status for Failed Policy Evaluation: true Version information: VeracodeJavaAPI v23.4.11.2 cUnknown HPI location: [var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jar|file://var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jar]Processing files in [local] workspace: [/local2/jenkins/workspace/SVWebApp|file:///local2/jenkins/workspace/SVWebApp]Building arguments. Calling wrapper with arguments: [-action, UploadAndScan, -vid, ********, -vkey, ********, -phost, 10.211.128.0, -pport, 80, -appname, Shoppers Voice (ICOM), -createprofile, false, -teams, Data-Survey/Compiled, -criticality, Medium, -sandboxname, SVWebApp-DEV, -createsandbox, true, -version, 2.0-SNAPSHOT-us_en_dev, -autoscan, true, -deleteincompletescan, 0, -maxretrycount, 5, -debug, -useragent, VeracodeScanJenkins/23.7.22.0 (Jenkins/2.401.3; Java/Unknown)] VeracodeJavaAPI v23.4.11.2 cUnknown Parsing error(s): -filepath is required for the selected action. The following parameters are optional for the selected action: -autorecreate -exclude -format -include -includenewmodules -inputfilepath -logfilepath -pattern -ppassword -puser -replacement -sandboxid -scanallnonfataltoplevelmodules -scanpollinginterval -scantimeout -selected -selectedpreviously -toplevel [2023.08.24 13:26:00.499] Invalid input Error- Returned code from wrapper:1 |
New:
Running a Jenkins file using the veracode plugin to perform an Upload and Scan with Veracode Pipeline, using the recommended snippet generated by the Snippet Generator fails due to:
Parsing error(s): -filepath is required for the selected action. I even tried adding filePath as a parameter and that does not add -filepath to the arguments and also fails: {code:java} withCredentials([usernamePassword(credentialsId: 'veracode-credentials', passwordVariable: 'veracode_password', usernameVariable: 'vercode_api_key')]) { veracode applicationName: VERACODE_NAME, canFailJob: true, waitForScan: true, unstableBuild: true, createSandbox: true, debug: true, deleteIncompleteScanLevel: '0', criticality: 'Medium', fileNamePattern: '', replacementPattern: '', sandboxName: "${POM_ARTIFACTID}-${params.ENV}", scanName: "${VERSION}${REVISION}-${ENV_US_EN}", teams: 'Data-Survey/Compiled', uploadIncludesPattern: "**/**-${ENV_US_EN}.war", scanExcludesPattern: '', scanIncludesPattern: '', filePath: "{$env.WORKSPACE}", useProxy: true, vid: vercode_api_key, vkey: veracode_password }{code} WARNING: Unknown parameter(s) found for class type 'com.veracode.jenkins.plugin.VeracodePipelineRecorder': filePath ------------------------------------------------------------------------ Upload and Scan with Veracode Pipeline ------------------------------------------------------------------------ [Debug mode is on] Can Fail Job: true Show Unstable Status for Failed Policy Evaluation: true Version information: VeracodeJavaAPI v23.4.11.2 cUnknown HPI location: [var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jar|file://var/lib/jenkins/plugins/veracode-scan/WEB-INF/lib/veracode-scan.jar]Processing files in [local] workspace: [/local2/jenkins/workspace/SVWebApp|file:///local2/jenkins/workspace/SVWebApp]Building arguments. Calling wrapper with arguments: [-action, UploadAndScan, -vid, ********, -vkey, ********, -phost, ********, -pport, ********, -appname, Shoppers Voice (ICOM), -createprofile, false, -teams, Data-Survey/Compiled, -criticality, Medium, -sandboxname, SVWebApp-DEV, -createsandbox, true, -version, 2.0-SNAPSHOT-us_en_dev, -autoscan, true, -deleteincompletescan, 0, -maxretrycount, 5, -debug, -useragent, VeracodeScanJenkins/23.7.22.0 (Jenkins/2.401.3; Java/Unknown)] VeracodeJavaAPI v23.4.11.2 cUnknown Parsing error(s): -filepath is required for the selected action. The following parameters are optional for the selected action: -autorecreate -exclude -format -include -includenewmodules -inputfilepath -logfilepath -pattern -ppassword -puser -replacement -sandboxid -scanallnonfataltoplevelmodules -scanpollinginterval -scantimeout -selected -selectedpreviously -toplevel [2023.08.24 13:26:00.499] Invalid input Error- Returned code from wrapper:1 |