Triggering Code Manager with custom scripts

Custom scripts are a good way to trigger deployments if you can't use webhooks. For example, if you have privately hosted Git repositories, custom notifications, or existing continuous integration systems (like Continuous Delivery).

Triggering Code Manager with a webhook is simpler than using a custom script. If you can use a webhook, we recommend it.

To create a script that triggers Code Manager to deploy your environments, you can use either the puppet-code command or a curl statement that hits the Code Manager API endpoints. We recommend using the puppet-code command, if possible.

After pushing new code to your control repo, run your script to trigger Code Manager to deploy your code.

The following instructions assume you've Set up Code Manager.

Related information