Skip to main content

Configure your agent-based scanning Jenkins job

To complete this task:

  1. In Jenkins, select the job you want to scan.

  2. Select Configure.

  3. Select Build Environment.

  4. Select Use secret text(s) or file(s).

  5. Under Bindings, select Add > Secret text.

  6. For Variable, enter SRCCLR_API_TOKEN.

  7. Select SRCCLR_API_TOKEN.

  8. In the build section, select Add build step > Execute shell.

    You can include the shell as a pre- or post-build step.

  9. Add this command to the shell command box:

    curl -sSL https://download.sourceclear.com/ci.sh | sh
  10. Save your build.

Results:

The next time your job runs, Veracode SCA performs an agent-based scan.