Pipedash
Providers

GitLab CI

GitLab CI/CD monitoring with group discovery, pipeline variables, cancellation and job logs.

The GitLab CI plugin (gitlab) monitors the latest pipeline of each selected GitLab project. It loads run history, starts pipelines on a ref and cancels running pipelines. It also shows job logs inside Pipedash.

Requirements

The plugin authenticates with a personal access token that has the api scope. GitLab has no optional scopes, so no other permission applies. Pipedash confirms the token with a request for the current user.

Configuration

Add provider dialog with GitLab CI selected and its credential fields. Desktop and mobile.
GitLab CI adds an optional base URL for self-hosted instances.
KeyTypeRequiredDefaultDescription
tokenPasswordYesNoneGitLab personal access token with api scope. The form labels it "API Token".
base_urlTextNoNoneEmpty means GitLab.com. A self-hosted instance takes its GitLab URL, for example https://gitlab.example.com. The form labels it "GitLab Base URL (optional)".
status_page_urlTextNoNoneStatuspage address for the instance. The form labels it "Status page URL (optional)".

The config table of the TOML file also takes selected_items, a comma-separated list of projects. Each entry is the project name with its namespace and without spaces, for example Platform/Backend. GitLab shows this name as "Platform / Backend". The match uses project and group names instead of URL paths and is case-sensitive. The picker writes these values.

Base URL

An empty base_url means https://gitlab.com. Pipedash removes a trailing slash and appends /api/v4, so https://gitlab.example.com becomes https://gitlab.example.com/api/v4.

On iOS, a self-hosted GitLab URL must use https. Pipedash does not connect to an HTTP-only instance from iOS.

Status page

GitLab.com has a built-in status source for status.gitlab.com. A self-hosted instance has none until status_page_url has a value. A value replaces the built-in source for any base URL.

The value must be an https URL without credentials, query or fragment. Plain http works only for 127.0.0.1 and [::1]. Pipedash reads api/v2/summary.json below the URL, so the page must run Statuspage. Pipedash rejects any other value. The Provider health page covers how Pipedash uses status pages.

Pipeline discovery

Discovery asks for an organization first. The list holds the account of the token owner, named by its username. It also holds every group the token can list, named by full path such as team-a/backend. Pipedash follows the GitLab pages until the last group.

If a group-list request fails, the picker keeps the token owner's account and leaves out all groups. This also applies when a later group page fails.

A group lists its projects and the projects of its subgroups. The account lists its own projects. Search runs on the GitLab server.

Pipedash shows the latest pipeline of each project in selected_items, or of all member projects when the key is absent. A permanent error on one project skips that project. A network error, a rate limit or an unavailable service fails the whole refresh.

Projects without CI

A project with no pipeline shows as pending when its custom CI config path is non-empty. Pipedash does not check whether that custom file exists.

Without a custom path, Pipedash checks .gitlab-ci.yml at HEAD. A missing file hides the project. A failed file lookup keeps the project visible.

Saving a provider in the app or through the REST API drops selected projects that have no pipeline and no CI file. Projects with a CI file stay, and so do projects whose lookup fails. If every selected project lacks CI, the save fails with "None of the selected repositories has a CI file or a pipeline run yet". Providers that come from the TOML file or an import keep their selected_items as written.

Run history

Run history reads the project's GitLab pipelines newest first by update time, with up to 100 pipelines per request. Pipedash follows the next-page header until the history view has enough runs or GitLab returns its last page. The view can load beyond 1000 runs when GitLab keeps older pipelines.

Pipedash loads the details of each listed pipeline before showing it. A permanent error on one detail request leaves that run out of the result. A network error, rate limit or unavailable service fails the history request.

Run details and cancel look the pipeline up by its ID, which is the run number. They work for any pipeline of the project.

Trigger parameters

One field, "Ref", appears in the trigger form. The REST API also accepts a variables entry.

NameTypeRequiredDefaultDescription
refStringYesmainBranch, tag or commit SHA to run the pipeline on.
variablesObjectNoNonePipeline variables to set. Pipedash sends each entry as an env_var variable, and a value that is not a string becomes an empty string.

Cancel

Pipedash cancels the GitLab pipeline whose ID equals the run number.

Rerun

Rerun opens the trigger form from run history and run details. The ref field starts with the branch of the previous run. The user can change it before starting a new pipeline.

Pipedash does not restore the previous pipeline variables. The GitLab run record in Pipedash holds no trigger inputs, and the form offers only ref. The REST API accepts a new variables object as described above.

A rerun creates a new pipeline. It does not retry the original pipeline or only its failed jobs.

Run logs

The Logs tab of the run details lists the stages of the pipeline in pipeline order, each with its jobs. A job that GitLab retried shows only its latest attempt. Pipedash reads the jobs with GET /projects/{id}/pipelines/{pipeline}/jobs, 100 per page, until the last page. It downloads the log of one job with GET /projects/{id}/jobs/{job}/trace and streams it to disk. A download stops with an error when no data arrives for 60 seconds, and after 15 minutes in total.

GitLab logs stream while a job runs. With the dialog open, Pipedash reads running job traces about every 2 seconds. Each read asks GitLab only for bytes Pipedash has not read yet. Pipedash reads the job list again every 5 seconds while the pipeline remains unfinished. A job that has not started yet shows "Logs appear when this job finishes" and opens by itself. A skipped job has no log. When GitLab answers 404 or 410 for a trace, the tab shows "The provider no longer has this log. It may have expired."

Pipedash keeps the job ID and byte offset for the next read. If GitLab ignores the range request or returns a range that does not match that offset, Pipedash reads the complete trace again and replaces the saved log.

section_start and section_end markers of the GitLab runner become sections of the log. A section marked collapsed=true starts closed. Sections do not nest, because a new section closes the open one. Pipedash reads the line timestamps that the runner writes at the start of a line. It flags error lines itself, for example a line that starts with ERROR: or fatal:. The Run logs page covers the viewer.

TOML example

[providers.gitlab-internal]
name = "GitLab Internal"
type = "gitlab"
token = "${GITLAB_TOKEN}"
refresh_interval = 30

[providers.gitlab-internal.config]
base_url = "https://gitlab.company.com"
status_page_url = "https://status.company.com"
selected_items = "Platform/Backend,Platform/Frontend,Infra/Terraform"

Status mapping

Pipedash statusGitLab state
successsuccess
failedfailed
runningrunning, pending, canceling
pendingAny other state, and projects with no pipeline
cancelledcanceled
skippedskipped