Skip to main content

Configure a step to resubmit a Dynamic Analysis with pipeline builds

You can add a step to your Jenkins pipeline project for performing a Dynamic Analysis of you application.

Before you begin:

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

To complete this task:

  1. In your Jenkins pipeline project, select Configure.

  2. Scroll down to the Pipeline section.

  3. Select Pipeline Syntax to display the Snippet Generator page.

  4. From the Sample Step dropdown menu, select veracodeDynamicAnalysisResubmit: Resubmit Veracode Dynamic Analysis.

  5. In the Analysis Name field, enter the name of a Dynamic Analysis that already exists in the Veracode Platform.

  6. Enter the maximum duration, in hours, that you want the analysis to run.

  7. Select whether to fail the Jenkins build if the analysis fails.

  8. Enter your Veracode API credentials.


    If your Veracode API credentials are bound to environment variables, you can enter the environment variables for the API ID and API key.

  9. Select Run in debug mode to collect detailed information about the analysis. The plugin stores the information in the console log of each Jenkins project.

  10. If you are using a proxy host to connect to the Veracode Platform, select Connect using proxy and enter the proxy host information.

  11. Select Generate Pipeline Script to generate a script using the selected settings.

This example shows a script using bound credentials. The values for the Veracode API user ID (vid) and API key (vkey) are the environment variables that map to the actual credentials in the Jenkins credential store.

veracodeDynamicAnalysisResubmit analysisName: 'Dynamic Analysis Test 2', debug: true, failBuildAsScanFailed: true, maximumDuration: 72, vid: 'VERACODE_API_ID', vkey: 'VERACODE_API_KEY'
  1. Copy the pipeline script, which you then add to your pipeline project.
  2. Go back to the main page of your pipeline project.
  3. Select Configure > Pipeline.
  4. In the Pipeline section, paste the generated script into the Script field.
  5. Delete the quotes from around the values for vid and vkey.
  6. Select Save.

Next steps:

Continue to Configure a step to review Dynamic Analysis results with pipeline builds.