Jenkins

Learn how to integrate OpenText Core SCA with Jenkins.

You can integrate your Jenkins pipeline with OpenText Core SCA, so that a vulnerability scan is performed every time the pipeline is triggered.

Configure OpenText Core SCA token

  1. Start by generating an access token. Copy the token to use it in the next step.

  2. Create the DEBRICKED_TOKEN, which the pipeline will use. Inside Jenkins, go to your pipeline, click Add Credentials, and select the correct folder.

  3. Create a new credential with "Kind" set to secret text.

  4. In the secret field, insert the access token you created in the previous step. As ID, enter DEBRICKED_TOKEN and click Create. See the image below:

Image show setting up Jenkins credentials for Debricked Scan
Setting up Jenkins credentials for Debricked Scan

Configure Jenkins CI workflow or pipeline

OpenText Core SCA assumes you already have a Jenkinsfile in your repository, describing a declarative pipeline. You now need to add a new stage to this pipeline.

Add the following template to the file:

https://github.com/debricked/cli/blob/main/examples/templates/Jenkins/Jenkinsfile

Commit your changes to Jenkinsfile and watch the CI run.

Last updated

Was this helpful?