Add code repositories via Jenkins pipeline

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

Note You can also use the Cloud Optix REST API as part of your development processes and Continuous Integration and Continuous Delivery (CI/CD) pipelines. See Getting Started With Cloud Optix REST API.
  1. Click Settings (in the left-hand menu) and select Environments.
  2. Click Add New Environment.
  3. On the Add your Cloud Provider environment page, select the IaC Environment tab.
  4. 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 will see the repositories on the IaC Environments tab in the Environments page in Sophos Cloud Optix.