b48d37c022
* Fix disappearing CircleCI plugin The paths for the CircleCI plugin were too deeply nested causing a blank page to render when one visited /circleci. * Set correct inputs from CircleCI settings Typically, a value like `tokenFromStore` would be an empty string. The code was setting `tokenFromStore` (rather than `token`) into the state on every keystroke. I don't know what potential effect this change has on storing tokens because I haven't tested that feature yet. Hopefully it still works as intended. * Add Vim .swp files to .gitignore Co-authored-by: David Tuite <dtuite@gmail.com>
CircleCI Plugin
Website: https://circleci.com/
Setup
- If you have standalone app (you didn't clone this repo), then do
yarn add @backstage/plugin-circleci
- Add plugin API to your Backstage instance:
// packages/app/src/api.ts
import { ApiHolder } from '@backstage/core';
import { CircleCIApi, circleCIApiRef } from '@backstage/plugin-circleci';
const builder = ApiRegistry.builder();
builder.add(circleCIApiRef, new CircleCIApi(/* optional custom url for your own CircleCI instance */));
export default builder.build() as ApiHolder;
- Add plugin itself:
// packages/app/src/plugins.ts
export { plugin as Circleci } from '@backstage/plugin-circleci';
- Run app with
yarn startand navigate to/circleci/settings - Enter project settings and project token, acquired according to https://circleci.com/docs/2.0/managing-api-tokens/
Features
- List top 50 builds for a project
- Dive into one build to see logs
- Polling (logs only)
- Retry builds
- Works for both project and personal tokens
- Pagination for builds
Limitations
- CircleCI has pretty strict rate limits per token, be careful with opened tabs