Files
backstage/plugins/bitrise
github-actions[bot] 034998d537 Version Packages
2021-04-22 13:19:35 +00:00
..
2021-03-18 12:31:44 +00:00
2021-04-22 13:19:35 +00:00
2021-04-15 13:26:44 +02:00

Bitrise

Welcome to the Bitrise plugin!

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

Installation

$ yarn add @backstage/plugin-bitrise

Then make sure to export the plugin in your app's plugins.ts to enable the plugin:

export { bitrisePlugin } from '@backstage/plugin-bitrise';

Bitrise Plugin exposes an "Entity Tab Content" component EntityBitriseContent. You can include it in the EntityPage.tsx`:

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

// Inside `WebsiteEntityPage` component
<EntityPageLayout.Content
  path="/bitrise"
  title="Bitrise"
  element={
    <Grid container spacing={3}>
      <Grid item xs={12}>
        <EntityBitrisePage />
      </Grid>
    </Grid>
  }
/>;

Now your plugin should be visible in the entity page, however in a state with 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.