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

2.1.23 • 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>
);

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]
  1. Get an api token from buildkite and export it to your shell.
export BUILDKITE_API_TOKEN=xxx-xxx-xxx

Links

/@roadiehq/backstage-plugin-buildkite/

    Package Sidebar

    Install

    npm i @roadiehq/backstage-plugin-buildkite

    Weekly Downloads

    1,615

    Version

    2.1.23

    License

    Apache-2.0

    Unpacked Size

    87 kB

    Total Files

    6

    Last publish

    Collaborators

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