Skip to content

Deploy in CircleCI

Ryan Ball edited this page Jun 28, 2023 · 3 revisions

Note: Charges may apply when running any Pipeline in CircleCI. 😉

Configure CircleCI Pipelines

  1. Fork the jamf-pro-notifications-alerter repository to your CircleCI connected source control.
  2. Click the "Projects" menu in the left sidebar of CircleCI, find the "jamf-pro-notifications-alerter" repo, and click "Set Up Project."
  3. In the "Select your config.yml file" dialog choose the "Fastest" option (which uses our sample config.yml file) and click "Set Up Project".

Configure Environmental Variables

  1. In your jamf-pro-notifications-alerter project, click "Project Settings" in the upper right.
  2. Click "Environment Variables" in the left sidebar.
  3. Create variables for any of the Jamf Pro URL(s), API User(s), API Password(s) and Slack webhook(s) you wish to pass as variables. All Environmental Variables created in CircleCI are secured by default and obfuscated in the job output.

Note: Our sample config.yml file assumes you've set API_PASS and SLACK_WEBHOOK as environmental variables, so you don't need to pass those at the command line.

Reference: CircleCI - Introduction to environment variables

Complete the Project

The sample config.yml file is configured to show you how to get notifications from two Jamf Pro servers. You can modify this for your number of Jamf Pro servers replacing the placeholder variables after the --url and --password options with the variable names you previously created.

You can then schedule this pipeline to run on your preferred schedule using CircleCI's guide.

Clone this wiki locally