Build board card

CI pipelines and deploys per repository: failing first, then running, queued and passing, each with its duration, who started it and when.

Category: Operations. Tags: Alerts and status, Numbers and metrics, Offices and workplaces.

Previews

Build board
Canvas
Build board
Corner
Build board
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

Feed: screenrig.builds/v1.

Feed documents carry source attribution. The Player supplies the feed to the card.

Properties

For theme, background, accent and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Builds"maxLength: 40
branchstring""maxLength: 60Shows only runs on this branch; empty shows every branch.
showstring"all""all", "builds", "deploys"
staleMinutesinteger10minimum: 1; maximum: 1440Data older than this shows Updated N min ago.

Dynamic properties

NameTypeDefaultValues and limitsDescription
updatedAtstring""maxLength: 40ISO 8601 instant the pipelines were taken (data store only; a feed carries fetchedAt).
pipelinesarray[]maxItems: 60
pipelines[].idstring""maxLength: 60
pipelines[].namestringminLength: 1; maxLength: 60; RequiredThe repository or pipeline.
pipelines[].branchstring""maxLength: 60
pipelines[].kindstring"build""build", "deploy"
pipelines[].environmentstring""maxLength: 30Where a deploy goes, for example production.
pipelines[].statusstring""maxLength: 24passed, failed, running, queued or cancelled. Also read: success, succeeded, ok, green, deployed; failure, error, broken, red, timed-out; in-progress, building, deploying, started; pending, waiting, scheduled; canceled, skipped, aborted. Any other word shows grey as given.
pipelines[].startedAtstring""maxLength: 40ISO 8601 instant the run started (queued runs: when they were queued). A running pipeline's duration counts from it.
pipelines[].finishedAtstring""maxLength: 40ISO 8601 instant the run finished.
pipelines[].durationSecondsinteger0minimum: 0; maximum: 8640000The run's length. Left out, it is finishedAt minus startedAt.
pipelines[].actorstring""maxLength: 60Who started or triggered it.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "build-board",
  "primitive": "card",
  "card": "build-board",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "build-board-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/build-board-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"updatedAt":"","pipelines":[]}}'