
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@buildkite/backstage-plugin-buildkite
Advanced tools
A Buildkite plugin for Backstage that provides deep integration with your Buildkite CI/CD pipelines.
A Buildkite plugin for Backstage that provides deep integration with your Buildkite CI/CD pipelines.
🔍 Enhanced Pipeline Visibility
⚡️ Powerful Filtering & Search
📊 Rich Build Information
🛠️ Interactive Build Management
⚙️ Advanced Customization
read_pipelines
read_builds
read_user
write_builds
(for rebuild functionality)If the plugin is in your project's plugins directory:
yarn workspace app add @buildkite/backstage-plugin-buildkite
If you're installing from an external package:
yarn workspace app add @buildkite/backstage-plugin-buildkite
app-config.yaml
:proxy:
endpoints:
'/buildkite/api':
target: https://api.buildkite.com/v2
headers:
Authorization: Bearer ${BUILDKITE_API_TOKEN}
Accept: application/json
allowedHeaders: ['Authorization']
buildkite:
apiToken: ${BUILDKITE_API_TOKEN}
organization: ${BUILDKITE_ORGANIZATION}
packages/app/src/plugins.ts
to register the plugin:// Import plugins that you want to be included in your app
export { buildkitePlugin } from '@buildkite/backstage-plugin-buildkite';
packages/app/src/App.tsx
:// Import plugins
import './plugins';
packages/app/src/apis.ts
:import { buildkiteAPIRef, BuildkiteClient } from '@buildkite/backstage-plugin-buildkite';
export const apis: AnyApiFactory[] = [
createApiFactory({
api: buildkiteAPIRef,
deps: { discoveryApi: discoveryApiRef, fetchApi: fetchApiRef, configApi: configApiRef },
factory: ({ discoveryApi, fetchApi, configApi }) => {
const buildkiteConfig = configApi.getOptionalConfig('buildkite');
return new BuildkiteClient({
discoveryAPI: discoveryApi,
fetchAPI: fetchApi,
config: {
organization: buildkiteConfig?.getOptionalString('organization') ?? 'default-org',
defaultPageSize: buildkiteConfig?.getOptionalNumber('defaultPageSize') ?? 25,
apiBaseUrl: buildkiteConfig?.getOptionalString('apiBaseUrl') ?? 'https://api.buildkite.com/v2',
},
});
},
}),
];
packages/app/src/App.tsx
:import { PipelinePage } from '@buildkite/backstage-plugin-buildkite';
const routes = (
<FlatRoutes>
{/* Other routes... */}
{/* Buildkite Plugin Routes */}
<Route path="/buildkite" element={<PipelinePage />} />
<Route path="/buildkite/pipeline/:orgSlug/:pipelineSlug" element={<PipelinePage />} />
</FlatRoutes>
);
packages/app/src/components/catalog/EntityPage.tsx
:import { isBuildkiteAvailable, BuildkiteWrapper } from '@buildkite/backstage-plugin-buildkite';
const cicdContent = (
<EntitySwitch>
<EntitySwitch.Case if={isBuildkiteAvailable}>
<BuildkiteWrapper />
</EntitySwitch.Case>
<EntitySwitch.Case>
<EmptyState
title="No CI/CD available for this entity"
missing="info"
description="Add a Buildkite annotation to enable CI/CD visualization"
/>
</EntitySwitch.Case>
</EntitySwitch>
);
const defaultEntityPage = (
<EntityLayout>
{/* Other routes... */}
<EntityLayout.Route path="/ci-cd" title="CI/CD">
{cicdContent}
</EntityLayout.Route>
</EntityLayout>
);
Add the Buildkite annotation to your component's catalog-info.yaml
:
metadata:
annotations:
buildkite.com/pipeline-slug: organization-slug/pipeline-slug
# Install dependencies
yarn install
# Start plugin in development mode
yarn start
# Run tests
yarn test
# Build plugin
yarn build
The plugin can track deployments across your Buildkite pipelines. There are three ways to mark a build as a deployment:
environment
metadata fieldSet the environment
metadata field in your Buildkite build using the buildkite-agent command:
# In your pipeline.yml
steps:
- label: "Deploy to Production"
command: |
buildkite-agent meta-data set "environment" "production"
./scripts/deploy.sh
For deployments where you want to track both the application name and environment:
# In your pipeline.yml
steps:
- label: "Deploy Frontend to Staging"
command: |
buildkite-agent meta-data set "frontend:staging:deployed" "true"
./scripts/deploy-frontend-staging.sh
branches: "main"
- label: "Deploy Backend to Staging"
command: |
buildkite-agent meta-data set "backend:staging:deployed" "true"
./scripts/deploy-backend-staging.sh
branches: "main"
This format allows you to track multiple applications deployed to different environments and will display both the application name and environment in the deployments view.
For pipelines that deploy to multiple environments sequentially (e.g., staging then production), you can use environment-specific flags:
# In your pipeline.yml
steps:
- label: "Deploy to Staging"
command: |
buildkite-agent meta-data set "staging_deployment" "true"
./scripts/deploy-staging.sh
branches: "main"
- block: "Promote to Production?"
branches: "main"
- label: "Deploy to Production"
command: |
buildkite-agent meta-data set "production_deployment" "true"
./scripts/deploy-production.sh
branches: "main"
This allows tracking multiple deployments from a single build as they progress through your environments.
Authentication Errors
BUILDKITE_API_TOKEN
is set in your environmentapp-config.yaml
Missing Build Data
organization-slug/pipeline-slug
Real-time Updates Not Working
Build Logs Not Loading
read_builds
permissionPlease read our Contributing Guide before submitting a Pull Request.
FAQs
A Buildkite plugin for Backstage that provides deep integration with your Buildkite CI/CD pipelines. This plugin allows you to monitor the status of your pipelines and manage their builds from a single interface.
The npm package @buildkite/backstage-plugin-buildkite receives a total of 16 weekly downloads. As such, @buildkite/backstage-plugin-buildkite popularity was classified as not popular.
We found that @buildkite/backstage-plugin-buildkite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.