Introducing a new way to review your PRs.

Read the announcement

hcavarsan / pipedash

One dashboard for CI/CD pipelines across multiple providers

View on GitHub

19 documents · Updated Nov 23, 2026

docs / provider-integrations

Provider integrations

Provider integrations connect Pipedash to CI/CD, deployment, and source-control systems. Each integration turns a provider's records and actions into one application view with common setup, pipeline, run, log, health, and permission behavior. The plugin platform defines the shared contract, while provider adapters describe the concrete connections.

Integration model

Registry and lifecycle

The provider layer keeps external systems separate from Pipedash's application model. A saved provider selects an integration and its connection settings. Pipedash then creates the integration, checks access, fetches data, and keeps a summary of fetch state, health, freshness, and recovery needs. (crates/…/provider.rs• L33-175, crates/…/provider_service.rs• L150-202, crates/…/provider_service.rs• L677-852)

The registry is the lookup point for provider types. Each built-in adapter registers a factory and manifest so Pipedash can create it by provider type and expose its name, version, description, authors, and icon. (crates/…/lib.rs• L152-167)

References: crates/…/provider_service.rs• L150-202 crates/…/provider_service.rs• L677-852 crates/…/lib.rs• L152-167 crates/…/Cargo.toml• L10-26 crates/…/registry.rs• L7-47

Plugin metadata

Provider metadata tells the application how to present and use an integration without provider-specific rules in the client. It covers setup fields, authentication choices, table views, capabilities, permissions, optional features, run history, status text, and action text. (crates/…/schema.rs• L8-143, crates/…/presentation.rs• L15-124, crates/…/builders.rs• L128-225)

The metadata also sets safe defaults. Capability flags limit actions, table schemas describe shared and provider fields, and presentation data lets an adapter use terms such as “resource” or “reconciliation” when “pipeline” is not the best fit. New capability fields remain disabled when older stored metadata does not contain them. (crates/…/defaults.rs• L38-140, crates/…/defaults.rs• L19-128, crates/…/tests.rs• L54-73)

References: crates/…/schema.rs• L35-147 crates/…/presentation.rs• L34-125 crates/…/builders.rs• L128-225 crates/…/defaults.rs• L38-140 crates/…/defaults.rs• L19-128 crates/…/tests.rs• L54-73

Normalized application model

Shared pipelines and runs

Pipedash presents provider records as shared pipelines and runs. This gives the application stable concepts for identity, status, repository or source, branch or revision, time, commit, actor, inputs, links, and provider-specific metadata even when external systems use different shapes. (crates/…/types.rs• L12-97)

Adapters map provider status into common states and can add a current health result to the latest run. Shared mapping rules cover conclusion-based systems and common time calculations, while each adapter keeps its own status words and history limits at the edge. Older records stay tied to the provider's own history, while provider metadata preserves details that the common fields cannot express. (crates/…/utils.rs• L141-208, crates/…/mapper.rs• L26-89, crates/…/mapper.rs• L17-96)

References: crates/…/types.rs• L12-97 crates/…/utils.rs• L141-208 crates/…/mapper.rs• L26-89 crates/…/mapper.rs• L17-96

Actions and logs

The common contract lets each provider offer only the actions and log views that it supports. Pipedash represents an action as allowed or blocked with a reason, so a missing provider feature or permission is visible instead of becoming a false promise in the client. (crates/…/actions.rs• L8-72, crates/…/plugin.rs• L85-214)

A provider may discover pipelines, show history, trigger or cancel work, rerun a run or job, review a pending run, enable a pipeline, and return structured log nodes. Default action rules use provider capabilities together with run state and provider metadata. An adapter can change the rerun behavior or block a trigger when the source system has a special limit. (crates/…/defaults.rs• L38-78, crates/…/plugin.rs• L44-59, crates/…/tests.rs• L75-147)

Trigger inputs are declared by the provider and can use prior run values. The shared defaults inject the selected branch and replay only declared inputs. Logs use shared nodes, cursors, sinks, and markers so the application can read both streamed CI output and provider-specific deployment or reconciliation details. Adapters can append new log bytes or restart from the full log when a cursor no longer matches the provider record. (crates/…/defaults.rs• L101-140, crates/…/lib.rs• L68-87, crates/…/tests.rs• L178-232, crates/…/tests.rs• L324-444)

References: crates/…/actions.rs• L8-72 crates/…/plugin.rs• L85-214 crates/…/defaults.rs• L38-140 crates/…/lib.rs• L68-87 crates/…/plugin.rs• L44-59 crates/…/tests.rs• L75-147 crates/…/tests.rs• L324-444

Provider-specific health

Health is a second view of provider data, not only a copy of the provider's main status. Integrations can report an external status page, controller health, deployment health, or workload health. Pipedash uses these signals to explain when a successful run produced an unhealthy live system. (crates/…/health.rs• L19-175, crates/…/plugin.rs• L54-60)

The health layer keeps partial access explicit. A missing optional health permission can leave the provider-reported state in place, while a transient failure, rate limit, denied access, or wholly missing resource can stop the health fetch rather than produce a misleading result. (crates/…/health.rs• L177-206, crates/…/plugin.rs• L60-114)

References: crates/…/health.rs• L19-206 crates/…/plugin.rs• L54-60 crates/…/plugin.rs• L60-114

Provider lifecycle

Configuration and discovery

Setup is data-driven. An integration declares its connection fields, authentication modes, validation rules, permissions, and optional fields. Pipedash uses that description for setup screens and asks the integration for live choices such as organizations, repositories, Kubernetes contexts, or namespaces. (crates/…/schema.rs• L35-147, crates/…/builders.rs• L28-126, crates/…/providers.rs• L361-544)

Authentication can use a token, single sign-on, no credentials, or a Kubernetes kubeconfig when the provider supports it. Fields can belong to one authentication mode or apply to all modes, which keeps the setup form aligned with the selected connection path. (crates/…/schema.rs• L53-147, crates/…/tests.rs• L22-101)

References: crates/…/schema.rs• L35-147 crates/…/builders.rs• L28-126 crates/…/tests.rs• L22-101 crates/…/providers.rs• L361-544

Fetch and refresh

After setup, Pipedash asks the live integration for pipeline data and run history. The provider service stores the fetch result and uses the shared error and freshness model to drive refresh, status, and recovery behavior. Adapters can use one latest-run lookup for a refresh or fall back to a separate pipeline lookup when no run exists. (crates/…/provider_service.rs• L677-775, crates/…/plugin_adapter.rs• L48-87, crates/…/client.rs• L122-173)

Adapters use shared retry and response rules for transient network, service, and rate-limit failures. They do not retry permanent failures or resend a mutation after the provider may have received it. Read requests can retry transient failures, while trigger and cancel requests retry only connection failures known to be unsent. (crates/…/utils.rs• L21-99, crates/…/tests.rs• L62-161, crates/…/client.rs• L185-215, crates/…/tests.rs• L121-177)

This diagram shows the path from provider setup to normalized data, actions, and health state.

flowchart LR
    C[Provider configuration] --> R[Provider registry]
    R --> P[Provider plugin]
    P --> E[External API or cluster]
    E --> M[Normalized pipelines and runs]
    M --> A[Application data and actions]
    E --> H[Health and permission signals]
    H --> A

References: crates/…/provider_service.rs• L677-775 crates/…/plugin_adapter.rs• L48-87 crates/…/utils.rs• L21-99 crates/…/tests.rs• L62-161 crates/…/client.rs• L185-215 crates/…/tests.rs• L470-498

Adapter variations

API-backed providers

API-backed adapters read provider resources, map their status and history, and send provider actions. Buildkite uses organizations and pipelines, while Jenkins turns nested folders and branch jobs into selectable pipelines. Both expose build history and logs through the shared run model. (crates/…/client.rs• L77-220, crates/…/client.rs• L80-168)

Other API-backed adapters use the same boundary for different source shapes. CircleCI models projects, pipelines, workflows, jobs, and typed trigger parameters. Azure DevOps models projects and pipeline definitions, then maps builds and timelines into the shared view. Woodpecker models repositories and pipelines with branch-based triggers. (crates/…/catalog.rs• L30-133, crates/…/plugin.rs• L38-61, crates/…/plugin.rs• L44-65)

These adapters keep provider rules at the edge. The application receives the same pipeline and run shape whether the source record is a CI pipeline, a deployment, or a stack update. (crates/…/plugin.rs• L178-318, crates/…/types.rs• L61-97)

References: crates/…/client.rs• L77-220 crates/…/client.rs• L80-168 crates/…/catalog.rs• L30-133 crates/…/plugin.rs• L38-61 crates/…/plugin.rs• L44-65 crates/…/plugin.rs• L178-318 crates/…/types.rs• L61-97

Kubernetes-backed providers

Kubernetes-backed adapters treat controller resources as pipelines and reconciliations or syncs as runs. ArgoCD can use its API or read Applications from a cluster. FluxCD reads Kustomizations and HelmReleases, reports controller and workload health, and requests reconciliation without exposing cancellation. (crates/…/plugin.rs• L118-365, crates/…/backend.rs• L28-147, crates/…/plugin.rs• L83-282)

The adapter must preserve the source system's limits. ArgoCD adds live resource and pod detail when available. FluxCD adds a current-state record when its bounded history does not cover the current state. Both keep missing resources, denied permissions, and unavailable health checks distinct from normal provider status. (crates/…/runs.rs• L31-166, crates/…/mapper.rs• L199-287, crates/…/catalog.rs• L40-70)

References: crates/…/plugin.rs• L118-365 crates/…/backend.rs• L28-147 crates/…/plugin.rs• L83-282 crates/…/runs.rs• L31-166 crates/…/mapper.rs• L199-287 crates/…/catalog.rs• L40-70

Source-control providers

Source-control adapters expose repository workflows as pipelines while keeping source-control details in the run metadata. GitHub Actions and Gitea map workflow runs, jobs, and steps into the shared view. GitLab maps projects and pipelines, then groups jobs into stages so the application can show both the stage summary and its jobs. (crates/…/workflows.rs• L29-58, crates/…/plugin.rs• L45-186, crates/…/mapper.rs• L28-207)

These providers also show why the contract separates capability, permission, and state. A disabled GitHub workflow can offer enable instead of trigger, while a pending deployment review can offer approval only to a permitted reviewer. Gitea and GitHub keep provider limits visible through paged history, workflow-file inputs, and provider-specific action errors rather than turning missing data into a false pending state. (crates/…/workflows.rs• L29-58, crates/…/actions.rs• L85-140, crates/…/mapper.rs• L114-130, crates/…/plugin.rs• L146-263, crates/…/tests.rs• L267-412)

References: crates/…/workflows.rs• L29-58 crates/…/plugin.rs• L45-186 crates/…/mapper.rs• L28-207 crates/…/actions.rs• L72-170 crates/…/actions.rs• L85-140 crates/…/mapper.rs• L114-130 crates/…/plugin.rs• L146-263 crates/…/tests.rs• L267-412

  • Plugin platform — the extension contract and shared metadata model.
  • Provider adapters — the concrete CI/CD, deployment, Kubernetes, and source-control integrations.

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep provider crate dependencies, registration, provider-type names, and metadata provider types aligned. The registry contract checks all four as one set.
  • Keep authentication options, mode-scoped fields, sign-in capability, and credential handling aligned. A field can disappear from the active setup view without causing a compile error.
  • Keep normalized status, run identity, time fields, and table field paths aligned across the adapter mapper and plugin API. A path can silently break sorting or display.
  • When a capability, feature, or permission changes, update the action state and the metadata that explains its availability together.
  • When live health is added to a provider, preserve the distinction between provider status, optional health access, rate limits, and transient fetch failure.
  • When a provider has bounded history, keep current snapshots, run identity, archive behavior, and the UI text about missing history consistent.
  • When retry or request safety changes, check trigger operations separately from safe reads. A retry that is safe for a read can duplicate an external action.

Important failure modes

TriggerConsequenceGuard
A built-in provider is listed as a dependency but is not registered, or its type does not match its crate nameThe provider cannot be selected or a saved provider cannot be created.Keep the built-in registry and registry contract in step with the dependency list.
An authentication option and its mode-scoped fields disagreeSetup can omit required connection data or send fields from the wrong auth mode.Validate the schema's offered modes and active fields together.
An adapter maps a provider state to the wrong shared status or reuses a run identityThe dashboard can show false health or merge separate history records.Keep mapper rules, run IDs, timestamps, and table paths tied to the source record identity.
Optional Kubernetes or workload permissions are denied during a health checkThe provider may report a false degradation or fail a fetch with an unclear cause.Keep permission errors distinct and fall back only where the adapter contract allows it.
A provider exposes bounded history but no current-state recordThe current state can look like an old run or disappear from the run view.Add a clearly marked current snapshot and keep its archive and display rules aligned.
A retry resends a trigger after the external service may have accepted itOne user action can start more than one deployment or build.Retry only unsent connection failures for actions and use normal transient retry rules for reads.

Key files

FileWhy to read it
crates/…/provider_service.rsCoordinates provider creation, authentication, refresh, health, freshness, and recovery.
crates/…/plugin_adapter.rsConnects plugin results and errors to the common provider model.
crates/…/plugin.rsDefines the provider contract for setup, discovery, data, actions, logs, health, and permissions.
crates/…/schema.rsDefines provider setup modes, fields, table schemas, and column behavior.
crates/…/presentation.rsDefines provider-specific words, view text, action text, and run display data.
crates/…/actions.rsDefines shared action availability, rerun behavior, and trigger results.
crates/…/defaults.rsShows how declared capabilities and run state become available actions and trigger values.
crates/…/health.rsDefines shared external status and controller health signals.
crates/…/kubernetes.rsProvides shared kubeconfig, Kubernetes name, connection, and error rules.
crates/…/utils.rsProvides shared retry, status mapping, repository identity, time, partial-result, and provider-name rules.
crates/…/Cargo.tomlLists the built-in provider adapters.
crates/…/contract.rsChecks that every adapter obeys shared metadata, capability, action, and table contracts.
crates/…/plugin.rsIllustrates an adapter with API and direct-cluster modes, live health, actions, and logs.
crates/…/plugin.rsIllustrates a Kubernetes controller adapter with discovery, reconciliation, health, and bounded history.
crates/…/catalog.rsIllustrates provider-defined project discovery, pipeline mapping, and run history.
crates/…/client.rsIllustrates organization and pipeline discovery, build history, actions, and job log access.
crates/…/client.rsIllustrates nested job discovery, build parameters, build actions, and progressive console logs.
crates/…/plugin.rsIllustrates a source-control adapter with permissions, health status, and provider-specific actions.
crates/…/plugin.rsIllustrates repository workflow discovery, paged run history, workflow inputs, and job log access.
crates/…/mapper.rsIllustrates project and pipeline normalization with stage and job log nodes.