@roadiehq/backstage-plugin-buildkite
TypeScript icon, indicating that this package has built-in type declarations

2.3.3 • Public • Published

Buildkite CI/CD Plugin for Backstage

a list of builds in the Buildkite plugin for Backstage

Features

  • List Buildkite CI/CD Builds
  • Retrigger builds
  • Inspect each builds step in real time

How to add Buildkite project dependency to Backstage app

  1. If you have standalone app (you didn't clone this repo), then do
yarn add @roadiehq/backstage-plugin-buildkite
  1. Add proxy config:
// app-config.yaml
proxy:
  '/buildkite/api':
    target: https://api.buildkite.com/v2/
    headers:
      Authorization: 'Bearer ${BUILDKITE_API_TOKEN}'
  1. Import it into your Backstage application:
// packages/app/src/components/catalog/EntityPage.tsx
import {
  EntityBuildkiteContent,
  isPluginApplicableToEntity as isBuildkiteAvailable,
} from '@roadiehq/backstage-plugin-buildkite';
  1. Add plugin API to your Backstage instance:
// packages/app/src/components/catalog/EntityPage.tsx
export const cicdContent = (
  <EntitySwitch>
    <EntitySwitch.Case if={isBuildkiteAvailable}>
      <EntityBuildkiteContent />
    </EntitySwitch.Case>
    ...
  </EntitySwitch>
);

Alternatively, the plugin can be configured to only display default branch builds (However, this may be overwritten on a per-entity basis via a buildkite.com/branch or buildkite.com/default-branch-only: false entity annotations, as explained below):

// packages/app/src/components/catalog/EntityPage.tsx
export const cicdContent = (
  <EntitySwitch>
    <EntitySwitch.Case if={isBuildkiteAvailable}>
      <EntityBuildkiteContent defaultBranchOnly />
    </EntitySwitch.Case>
    ...
  </EntitySwitch>
);

How to use Buildkite plugin in Backstage

  1. Add annotation to the yaml config file of a component:
metadata:
  annotations:
    buildkite.com/project-slug: [exampleorganization/exampleproject]
    # Optional; the buildkite.com/branch annotation can be used to configure
    # the plugin to only display builds of the specified branch name.
    #
    # If omitted, the plugin displays builds from all branches.
    #
    # Note that 'buildkite.com/branch' takes precedence over a
    # globally-configured <EntityBuildkiteContent defaultBranchOnly />.
    buildkite.com/branch: 'main'
    # Optional; the buildkite.com/default-branch-only annotation can be used to
    # configure the plugin to only display builds of the default branch name,
    # the value of which is dynamically determined via the Buildkite API.
    #
    # Note that...
    # A 'buildkite.com/branch' annotation takes precedence over 'buildkite.com/default-branch-only'.
    # A 'buildkite.com/default-branch-only: false' takes precedence over a
    # globally-configured <EntityBuildkiteContent defaultBranchOnly />.
    # "true" and "false" are the only supported values.
    buildkite.com/default-branch-only: 'true'
  1. Get an api token from buildkite and export it to your shell.
export BUILDKITE_API_TOKEN=xxx-xxx-xxx

Links


Roadie gives you a hassle-free, fully customisable SaaS Backstage. Find out more here: https://roadie.io.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.30latest

Version History

VersionDownloads (Last 7 Days)Published
2.3.30
2.3.2491
2.3.1176
2.3.00
2.2.024
2.1.23263
2.1.224
2.1.21279
2.1.207
2.1.174
2.1.169
2.1.1511
2.1.140
2.1.13124
2.1.120
2.1.110
2.1.101
2.1.913
2.1.828
2.1.70
2.1.60
2.1.50
2.1.40
2.1.31
2.1.213
2.1.10
2.1.00
2.0.90
2.0.80
2.0.70
2.0.66
2.0.50
2.0.412
2.0.30
2.0.20
2.0.10
2.0.024
1.4.00
1.3.130
1.3.120
1.3.110
1.3.100
1.3.80
1.3.70
1.3.60
1.3.50
1.3.40
1.3.30
1.3.20
1.3.10
1.2.40
1.2.30
1.2.20
1.2.10
1.2.00
1.1.20
1.1.10
1.1.00
1.0.120
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.625
1.0.50
1.0.41
1.0.30
1.0.20
1.0.10
1.0.05
0.3.01
0.2.50
0.2.40
0.2.30
0.2.20
0.2.00
0.1.72
0.1.60
0.1.50
0.1.40
0.1.312
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i @roadiehq/backstage-plugin-buildkite

Weekly Downloads

1,536

Version

2.3.3

License

Apache-2.0

Unpacked Size

102 kB

Total Files

34

Last publish

Collaborators

  • samnixon87
  • gorkaroadie
  • joao.roadie
  • kissmikijr
  • sblausten
  • roadiehq-david
  • iainbillett
  • brianfletcher
  • xantier
  • irma1203
  • roadie-bot