Configure Jenkins Credentials to Use with Pipeline Job for Veracode Scans

Build Systems

About this task

Veracode recommends using a snippet generator to create code snippets for routinely repeated steps in your build, test, or deploy pipeline.

To configure the Jenkins credentials to use in a pipeline job:

Procedure

  1. In your project, select Pipeline Syntax in the sidebar.
  2. From the Sample Step dropdown menu, select withCredentials: Bind credentials to variables.
  3. Under Bindings, click Add, and select Username and password (separated).
  4. Enter variable names for your bound Veracode credentials.
    You add these variables to the pipeline script.
  5. If you have already bound your Veracode credentials, select them from the Credentials dropdown menu.
  6. Otherwise, click Add > Jenkins.
  7. Enter the Veracode API ID and key.


    Note: Veracode has deprecated the Veracode username/password credentials option and is planning to remove it as part of a future Veracode Platform release. Veracode recommends that you move from the username/password credentials to the Veracode API/key credentials as soon as possible.
  8. Click Generate Pipeline Script.
  9. Copy this Groovy code into your pipeline and save it.