Installing Pipelines as Code

  • This is a placeholder for an unordered list that will be replaced with ToC. To exclude a header, add {:.no_toc} after it.

What To Expect

This guide should include:

  • hal armory commands to enable and configure “Pipelines as code” feature
  • Setting up GitHub or Bitbucket/Stash webhooks to work with the “Pipelines as code” feature


To get an overview of Pipelines as code, check out the user guide

Enabling Pipelines as code

In order to configure “Pipelines as code”, it has to be enabled. Enable by running the following command:

hal armory dinghy enable

Steps to follow to configure Pipelines as code:

  • Create a personal access token (in either GitHub or Bitbucket/Stash) that has read access to all repos where dinghyfiles and modules reside.

  • Get your Github or Bitbucket/Stash “org” where the app repos and templates reside. For example if your repo is armory-io/dinghy-templates, your template-org would be armory-io.

  • Get the name of the repo containing modules. . For example if your repo is armory-io/dinghy-templates, your template-repo would be dinghy-templates.

GitHub Example

hal armory dinghy edit \
  --template-org "armory-io" \
  --template-repo "dinghy-templates" \

  # For Github enterprise, you may customize the endpoint:
  --github-endpoint ""

Set up webhooks at the organization level for Push events. You can do this by going to: Set the Payload URL to: https://<your-gate-url>/webhooks/git/github and a content type of application/json. If your gate endpoint is protected by a firewall, you’ll need to configure your firewall to allow inbound webhooks from Github’s IP addresses. You can find their IPs here: , you can read Github’s docs here.

Bitbucket / Stash Example

hal armory dinghy edit \
  --template-org "armory-io" \
  --template-repo "dinghy-templates" \
  --stash-token \
  --stash-username "stash_user" \
  --stash-endpoint ""

You’ll need to setup webhooks for each project that has the dinghyfile or module separately. Make the webhook POST to: If you’re using stash <v3.11.6, you’ll need to install the following webhook plugin to be able to setup webhooks.

Other Options

  • If you have Fiat enabled, add the following option --fiat-user "your-service-account". The service account has to be in a group that has read/write access to the pipelines you will be updating. If you have app specific permissions configured in your spinnaker application, make sure the service account is added. If you need to create a new service account, here are the instructions

  • If you want to change the name of the file that describes pipelines, add the following option --dinghyfile-name "your-name-here"

  • If you want to disable lock pipelines in the UI before overwriting changes, add --autolock-pipelines false

For a complete listing of options check out hal armory