You must tell Continuous Delivery for Puppet Enterprise (PE) which repositories in your source control system are your control repos and module repos. This tells Continuous Delivery for PE where to listen for code changes.
Control Repos in Continuous Delivery for PE track
changes made on active development branches of your source control system. Module
repos, referred to as Modules in the Continuous Delivery for PE web UI, contain information about Puppet modules. When adding repos to Continuous Delivery for PE, it's important to connect the repo's
Adding a repo in Continuous Delivery for PE configures a webhook to the repository in your source control system. The webhook reports new commit activity on the repository to Continuous Delivery for PE, enabling you to track code changes and take action (such as triggering pipelines or running individual tests on the new code).
In the Continuous Delivery for PE web UI, click .
To add a module repo, click.
Select the source control provider and repository.
The Repository dropdown menu lists a maximum of 10 repositories. Begin typing a repository name to refresh and refine the list. If there are still more than 10 results, you'll need to provide a more specific repository name until the desired repository appears.
mainbranch is automatically selected, if one exists. If the repo does not have a
mainbranch, select Create a main branch from an existing branch and select your active development branch as the basis for the new
mainbranch. Continuous Delivery for PE creates a
mainbranch for you based on the existing branch you choose.CAUTION: When working with Continuous Delivery for PE, only commit to the
mainbranch and any feature branches (which are eventually merged back into the
mainbranch). Do not push code changes to any other Git branches; this can create conflicts with Continuous Delivery for PE workflows.
- Optional: Edit the repo's Display name as it appears in the Continuous Delivery for PE web UI. The name can contain only numbers, letters, dashes, and underscores.
- Click Add control repo (or Add module).
If you added a control repo, make sure you add the
puppetlabs-cd4pe_jobsmodule to the Puppetfile on the control repo's
mainbranch, as explained in Configure job hardware.
- Repeat to add more repos to Continuous Delivery for PE.