Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

GitLab integration

Connect Argos to GitLab for visual testing, baseline selection, and direct feedback on your merge requests.

Connect Argos to GitLab to get commit statuses on your merge requests and accurate baseline selection from your commit history.

Argos reads commit history to select the correct baseline build and reports statuses back to GitLab. The integration also lets you sign in with GitLab and import your GitLab repositories.

Connect a GitLab repository

Argos communicates with GitLab through a Personal Access Token, acting as a dedicated bot user on your merge requests.

1

Generate a Personal Access Token in GitLab

  1. Select Add new token.

  2. Set an expiration date 12 months ahead (the maximum allowed).

  3. Select Create personal access token and copy the generated token.

Generate a Personal Access Token in GitLab

You can also use a Project Access Token if you want to restrict access to a single project. If you choose this option, be sure to set the role of the token to Developer.

2

Configure the token in Argos

  1. From the dashboard, select your team or your personal account from the scope selector.

  2. Select the Settings tab and go to the Integrations section.

  3. Scroll to the GitLab section.

  4. Enter the generated token and select Save.

Configure GitLab in Argos
3
  1. From the dashboard, select your team or your personal account from the scope selector.

  2. Select the Projects tab.

  3. Select Create a new Project at the top right.

  4. Select Continue with GitLab.

  5. Pick your GitLab organization and the desired repository. The new project appears in your projects list.

Configure GitLab in Argos

Run Argos in GitLab CI

The integration reports statuses; your pipeline uploads the screenshots. For a .gitlab-ci.yml example, see Run Argos in CI.

Commit statuses

Argos names its commit status as on GitHub (argos, or argos/<build-name>; see commit status names). The status moves through these GitLab states as the build progresses:

Build
GitLab state

Queued

pending

In progress

running

No changes detected

success

Changes detected

failed

Changes approved

success

Changes rejected

failed

Changes detected on an auto-approved build

success

success

GitLab adds the status to the commit's pipeline as an external job. Whether a failed status blocks merging is your choice: turn on Pipelines must succeed in your GitLab project's Settings → Merge requests → Merge checks to prevent merging while the pipeline has failed. Argos posts the same statuses either way.

Report changes awaiting review as running

To show changes awaiting review as still in progress rather than failed, choose Report a pending status under Status while awaiting review in your project settings. A GitLab status can't move back from running to pending, so in that mode Argos changes two states:

Build
GitLab state

In progress

pending

Changes detected

running

The status keeps the description "… waiting for your decision" until the review: approving the changes turns it to success, and rejecting them to failed. With Pipelines must succeed turned on, a running pipeline blocks merging just as a failed one does.

Connect an existing Argos project to GitLab

To link a GitLab repository to a project that already exists in Argos, go to Project Settings → Connect Git Repository and select the repository. The token must be configured first.

GitLab Self-Managed

GitLab Self-Managed deployments are supported on the Argos Enterprise plan. These setups often require tailored configuration alongside SAML SSO and other enterprise features. To discuss enabling GitLab Self-Managed, contact sales.

Last updated

Was this helpful?