Skip to main content

Use Argos with Buildkite

Configure Buildkite to send screenshots to Argos visual testing platform.

Configuring environment variable

Argos uses the ARGOS_TOKEN to identify to which repository the screenshots you send are related.

To get token value, sign in to Argos and click on the Gear buttonbutton in front of your repository.

In your Buildkite pipeline, go to Settings > Steps > Environment Variables. Then, set the ARGOS_TOKEN as an environment variable.

Set the ARGOS_TOKEN as an environment variable in your CI configuration.

Warning: Be careful to store your Argos token safely. ARGOS_TOKEN environment variable should be accessible by your CI but not visible publicly.

If you are not comfortable with storing secret, read Buildkite documentation about environment variables.

Configure Buildkite

pipeline.yml
steps:
# 👉 Insert the steps required to take screenshots

- label: "Upload screenshots to argos-ci.com"
command: npx @argos-ci/cli upload ./screenshots

We don't have Buildkite example repository to yet. Don't hesitate to contribute by adding an example!