MWilson158870 (Community Member) asked a question.

The Veracode Scan plugin fails due to -filepath is required with no way to set it

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, 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


  • User16877954737335246824 (Veracode, Inc.)

    Hello Wilson,

     

    I would recommend you contact our technical support team. Here's how you can log a case:1. Navigate to the upper right corner of any page in the Community, and click on your user avatar.

    2. Select Contact Support from the drop-down menu.Open a case with Support, for Integrations and provide the steps you are taking to receive that error to better help assist the engineer.

     

    Regards,

    Pranita

    Veracode Inc.

     

    With this issue, I would recommend opening a support ticket. You can open a support ticket within the Community. Simply click on your profile on the top right side of the screen and select "Contact Support". Or click on the link below. https://community.veracode.com/s/contact-support

     

     

    Expand Post

Topics (6)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.