Add code repositories via Jenkins pipeline

Sophos provides a script that you can add to Jenkins to give Sophos Cloud Optix access to your repositories.

Note You can also use the Sophos Cloud Optix REST API as part of your development processes and Continuous Integration and Continuous Delivery (CI/CD) pipelines. See Getting Started With Sophos Cloud Optix REST API.
  1. Go to Settings and click Add Environments.
    Add your cloud environment appears.
  2. Select IaC.
  3. Copy the script shown under Script for Jenkins Integrations and add it to your build pipeline at the stage that best suits you.
When your pipeline next runs, you see the repositories on the IaC Environments tab in the Environments page in Sophos Cloud Optix.