Use this guide to configure Buildkite build and deploy steps to manage releases in Aviator. To use Aviator Releases, we recommend having separate steps for the build and deploy workflows. You may still use it as a single step, in which case the creation of Release (the build part) will be a no-op. Authentication Buildkite doesn’t have a concept of Apps or bot accounts. Because of this, we need to take an access token for a user. Step 1 : Go to “Personal Settings” from the top-right corner Step 2 : Click “API Access Tokens” Step 3 : Click “New API Access Token” Name the token and pick your organization Choose “ Read Builds ”, “ Write Builds ”, and “ Read Pipelines” . Click “Create New API Access Token” Step 4 : Copy the created access token, and go to https://app.aviator.co/settings/workspace/integrations , paste the created access token to the Buildkite integration. 2. Setup Buildkite Webhook Go to your Buildkite organization’s settings from the top bar. Go to “Notification Services” Add “Webhook” Name this webhook and put
https://app.aviator.co/api/buildkite/webhook
to the webhook URL. Choose “build.schedules”, “build.running”, “build.failing”, and “build.finished”. Click “Add Webhook Notification”. Build workflow Option A - Using Two-step workflow Connecting with Aviator On Buildkite pipeline page, copy the pipeline’s URL Go to the release project config for the build pipeline configuration. Choose Buildkite and paste the organization and pipeline names as shown in the copied URL. Buildkite Organization and Pipeline slug Click “SAVE”. Using Environment variables Aviator sends the following parameters to Buildkite as environment variables when triggering the workflow:
AVIATOR_RELEASE_CUT_ID
AVIATOR_RELEASE_CANDIDATE_VERSION
AVIATOR_RELEASE_CUT_COMMIT_HASH
AVIATOR_DEPLOYMENT_ID
AVIATOR_RELEASE_CANDIDATE_VERSION
AVIATOR_RELEASE_CUT_COMMIT_HASH