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.
Generate a Personal Access Token in GitLab
Go to GitLab tokens settings.
Select Add new token.
Set an expiration date 12 months ahead (the maximum allowed).
Select Create personal access token and copy the generated token.

Link a GitLab project to Argos
From the dashboard, select your team or your personal account from the scope selector.
Select the Projects tab.
Select Create a new Project at the top right.
Select Continue with GitLab.
Pick your GitLab organization and the desired repository. The new project appears in your projects list.

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:
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:
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?
