Files
backstage/plugins/bitrise
dependabot[bot] 24254fd433 build(deps): bump @testing-library/user-event from 13.5.0 to 14.0.0
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.5.0 to 14.0.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.0)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-04-05 10:19:52 +02:00
..
2021-06-22 10:07:18 +02:00
2021-12-30 12:53:16 +01:00
2022-03-22 12:28:03 +00:00

Bitrise

Welcome to the Bitrise plugin!

  • View recent Bitrise Builds for a Bitrise application
  • Download build artifacts

Installation

# From your Backstage root directory
yarn add --cwd packages/app @backstage/plugin-bitrise

Bitrise Plugin exposes an entity tab component named EntityBitriseContent. You can include it in the EntityPage.tsx`:

// At the top imports
import { EntityBitriseContent } from '@backstage/plugin-bitrise';

// Farther down at the website declaration
const websiteEntityPage = (
  <EntityLayout>
    {/* Place the following section where you want the tab to appear */}
    <EntityLayout.Route path="/bitrise" title="Bitrise">
      <EntityBitriseContent />
    </EntityLayout.Route>

Now your plugin should be visible as a tab at the top of the entity pages, specifically for components that are of the type website. However, it warns of a missing bitrise.io/app annotation.

Add the annotation to your component catalog-info.yaml as shown in the highlighted example below:

metadata:
  annotations:
    bitrise.io/app: '<THE NAME OF THE BITRISE APP>'

The plugin requires to configure a Bitrise API proxy with a BITRISE_AUTH_TOKEN for authentication in the app-config.yaml:

proxy:
  '/bitrise':
    target: 'https://api.bitrise.io/v0.1'
    allowedMethods: ['GET']
    headers:
      Authorization: ${BITRISE_AUTH_TOKEN}

Learn on https://devcenter.bitrise.io/api/authentication how to create a new Bitrise token.