SHuang932129 (Community Member) asked a question.

How to set veracode in jenkinsfile WITHOUT withCredentials?

Hello,

I'm new to veracode and need to integrate veracode into jenkins. my jenkins admin told me he "could have configured the credentials in job if it was a freestyle job but for pipeline job the same has to be configured in script", so I have to hardcode the vid and vkey in jenkinsfile as below. but it doesn't work, I got error says vuser and vpasseword is required. Could someone help to show me the right way? thanks a lot!

Screen Shot 2020-05-26 at 4.47.29 PM

and here is the jenkins build error log:Screen Shot 2020-05-26 at 4.44.51 PM

Thanks.


  • Hello SHuang932129,

     

    Thank you for reaching out to the Community!

     

    If you review the link below on "Configure Jenkins Pipeline job for Veracode Scan". In this link there is a field in the Snippet Generator page that allows you to include your credentials.

     

    https://help.veracode.com/r/t_jenkins_pipe

     

    This should take care of the Parsing Error.

    Let me know if you should need any further assistance.

    Best Regards,

    Steven

     

    Expand Post
    • SHuang932129 (Community Member)

      Thank you Steve,

       

      I've forwarded this to my jenkins admin for reference. Will update here when get progress.

       

      Thanks,

      Sam

      Expand Post

Topics (2)

No articles found
Loading

Ask the Community

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