ZGulser393733 (Community Member) asked a question.

Jenkins Veracode pipeline setup

Hi,

 

I am trying to configure jenkins pipeline for veracode scan and I am using the pipeline script as follows:

stage("Veracode-Upload-and-Scan") {

steps {

withCredentials([usernamePassword(

credentialsId: 'veracode-credentials',

passwordVariable: 'veracode_key',

usernameVariable: 'veracode_id')]) {

veracode applicationName: 'CX6-test',

canFailJob: true,

criticality: 'High',

debug: true,

fileNamePattern: '',

replacementPattern: '',

sandboxName: '',

scanExcludesPattern: '',

scanIncludesPattern: '',

scanName: '$timestamp',

teams: '',

uploadExcludesPattern: '',

uploadIncludesPattern: '**/war/*',

useIDkey: true,

vid,

vkey,

vpassword: 'veracode_key',

vuser: 'veracode_id'

}

}

}

I followed the instruction from the veracode documentation, not sure what is wrong with this because I get an error when I try to build the job in Jenkins.

Error is "Arguments to "veracode" must be explicitly named. @ line 35, column 21.

veracode applicationName: 'CX6-test',"

Would be great if you can throw some light on this issue.

 

Regards,

Zeki


  • Kin (Community Member)

    Hi @ZGulser393733 (Community Member)​ ,

     

    The problem might be around the vid, vkey parameters:

     

    useIDkey: true,

    vid, <---

    vkey, <---

    vpassword: 'veracode_key',

    vuser: 'veracode_id'

     

    when the userIDkey is true, the vid and vkey should contain the ID and key respectively, like below:

     

    useIDkey: true,

    vid: '$veracode_key',

    vkey: '$veracode_id',

    vpassword: '',

    vuser: ''

     

    Hope this helps.

    Expand Post
    Selected as Best
  • Kin (Community Member)

    Hi @ZGulser393733 (Community Member)​ ,

     

    The problem might be around the vid, vkey parameters:

     

    useIDkey: true,

    vid, <---

    vkey, <---

    vpassword: 'veracode_key',

    vuser: 'veracode_id'

     

    when the userIDkey is true, the vid and vkey should contain the ID and key respectively, like below:

     

    useIDkey: true,

    vid: '$veracode_key',

    vkey: '$veracode_id',

    vpassword: '',

    vuser: ''

     

    Hope this helps.

    Expand Post
    Selected as Best

Topics (4)

No articles found
Loading

Ask the Community

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