Add

Learn how to create a dashboard.

Command

$ vela add dashboard <parameters...> <arguments...>

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
namename for the dashboardVELA_DASHBOARD_NAME, DASHBOARD_NAME
reposlist of repositories (org/repo) for the dashboardVELA_DASHBOARD_REPOS, DASHBOARD_REPOS
branchesfilter builds in all repositories by branchVELA_DASHBOARD_REPOS_BRANCH, DASHBOARD_REPOS_BRANCH
eventsfilter builds in all repositories by eventVELA_DASHBOARD_REPOS_EVENT, DASHBOARD_REPOS_EVENT
adminsprovide the list of admins for the dashboardVELA_DASHBOARD_ADMINS, DASHBOARD_ADMINS
outputformat the output for the dashboardVELA_OUTPUT, REPO_OUTPUT

Sample

Request

$ vela add dashboard --name 'Octocat Main Branches' --repos octocat/Hello-World,octocat/Spoon-Knife --branches main

Response

{
  Name: Octocat Main Branches,
  ID: d3040cd7-9bb6-45d1-a2a1-d794483a902c,
  Admins: [{
  Active: true,
  Admin: false,
  Dashboards: [],
  Favorites: [],
  ID: 1,
  Name: octokitty,
  Token: ,
}],
  CreatedAt: 1716572402,
  CreatedBy: octokitty,
  UpdatedAt: 1716572402,
  UpdatedBy: octokitty,
  Repos: [{
  Name: octocat/Hello-World,
  ID: 1,
  Branches: [main],
  Events: [],
} {
  Name: octocat/Spoon-Knife,
  ID: 2,
  Branches: [main],
  Events: [],
}],
}

Examples

EXAMPLES:
  1. Add a dashboard.
    $ vela add dashboard --name my-dashboard
  2. Add a dashboard with repositories.
    $ vela add dashboard --name my-dashboard --repos Org-1/Repo-1,Org-2/Repo-2
  3. Add a dashboard with repositories filtering builds by pushes to main.
    $ vela add dashboard --name my-dashboard --repos Org-1/Repo-1,Org-2/Repo-2 --branch main --event push
  4. Add a dashboard with multiple admins.
    $ vela add dashboard --name my-dashboard --admins JohnDoe,JaneDoe