0.0.0-nightly-20220708025041 • Published 3 years ago

@backstage/plugin-azure-devops-backend v0.0.0-nightly-20220708025041

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

Azure DevOps Backend

Simple plugin that proxies requests to the Azure DevOps API.

Setup

The following sections will help you get the Azure DevOps Backend plugin setup and running.

Configuration

The Azure DevOps plugin requires the following YAML to be added to your app-config.yaml:

azureDevOps:
  host: dev.azure.com
  token: ${AZURE_TOKEN}
  organization: my-company

Configuration Details:

  • host and token can be the same as the ones used for the integration section
  • AZURE_TOKEN environment variable must be set to a Personal Access Token with read access to both Code and Build
  • organization is your Azure DevOps Services (cloud) Organization name or for Azure DevOps Server (on-premise) this will be your Collection name

Up and Running

Here's how to get the backend up and running:

  1. First we need to add the @backstage/plugin-azure-devops-backend package to your backend:

    # From the Backstage root directory
    cd packages/backend
    yarn add @backstage/plugin-azure-devops-backend
  2. Then we will create a new file named packages/backend/src/plugins/azure-devops.ts, and add the following to it:

    import { createRouter } from '@backstage/plugin-azure-devops-backend';
    import { Router } from 'express';
    import type { PluginEnvironment } from '../types';
    
    export default function createPlugin(
      env: PluginEnvironment,
    ): Promise<Router> {
      return createRouter({
        logger: env.logger,
        config: env.config,
      });
    }
  3. Next we wire this into the overall backend router, edit packages/backend/src/index.ts:

    import azureDevOps from './plugins/azure-devops';
    // ...
    async function main() {
      // ...
      // Add this line under the other lines that follow the useHotMemoize pattern
      const azureDevOpsEnv = useHotMemoize(module, () => createEnv('azure-devops'));
      // ...
      // Insert this line under the other lines that add their routers to apiRouter in the same way
      apiRouter.use('/azure-devops', await azureDevOps(azureDevOpsEnv));
  4. Now run yarn start-backend from the repo root

  5. Finally open http://localhost:7007/api/azure-devops/health in a browser and it should return {"status":"ok"}

Links

0.6.5

1 year ago

0.6.4

1 year ago

0.6.4-next.1

1 year ago

0.6.4-next.0

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.6.0-next.2

1 year ago

0.6.0-next.1

1 year ago

0.5.5

1 year ago

0.6.0-next.0

1 year ago

0.5.4

1 year ago

0.5.3

1 year ago

0.5.2

1 year ago

0.5.2-next.3

1 year ago

0.5.2-next.2

1 year ago

0.5.2-next.1

1 year ago

0.5.2-next.0

1 year ago

0.5.1

1 year ago

0.5.1-next.2

1 year ago

0.5.1-next.1

1 year ago

0.5.1-next.0

1 year ago

0.5.0

1 year ago

0.5.0-next.3

1 year ago

0.5.0-next.2

1 year ago

0.5.0-next.1

1 year ago

0.3.30-next.1

2 years ago

0.3.30-next.2

2 years ago

0.4.2-next.0

2 years ago

0.4.2-next.1

2 years ago

0.4.3-next.2

2 years ago

0.3.27-next.1

2 years ago

0.3.27-next.0

2 years ago

0.3.27-next.2

2 years ago

0.4.4-next.2

1 year ago

0.4.4-next.1

2 years ago

0.4.4-next.0

2 years ago

0.3.26-next.1

2 years ago

0.4.0-next.3

2 years ago

0.4.5-next.0

1 year ago

0.4.4

1 year ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.3.29

2 years ago

0.3.28

2 years ago

0.3.27

2 years ago

0.3.26

2 years ago

0.3.29-next.0

2 years ago

0.3.26-next.0

2 years ago

0.3.25

2 years ago

0.3.25-next.2

2 years ago

0.3.24-next.1

2 years ago

0.3.24

2 years ago

0.3.25-next.0

2 years ago

0.3.25-next.1

2 years ago

0.3.24-next.0

2 years ago

0.3.23

2 years ago

0.3.23-next.2

2 years ago

0.3.23-next.0

2 years ago

0.3.23-next.1

2 years ago

0.3.22-next.2

2 years ago

0.3.22-next.1

2 years ago

0.3.22-next.0

2 years ago

0.3.22

2 years ago

0.3.21

2 years ago

0.3.19-next.1

2 years ago

0.3.19-next.0

2 years ago

0.3.20

2 years ago

0.3.19

2 years ago

0.3.21-next.2

2 years ago

0.3.21-next.0

2 years ago

0.3.21-next.1

2 years ago

0.3.17-next.0

3 years ago

0.3.17-next.1

3 years ago

0.3.17-next.2

2 years ago

0.3.18

2 years ago

0.3.17

2 years ago

0.3.16

3 years ago

0.3.18-next.1

2 years ago

0.3.18-next.0

2 years ago

0.3.18-next.3

2 years ago

0.3.18-next.2

2 years ago

0.3.16-next.2

3 years ago

0.3.16-next.1

3 years ago

0.3.16-next.0

3 years ago

0.3.15-next.0

3 years ago

0.3.15-next.1

3 years ago

0.3.15-next.2

3 years ago

0.3.15

3 years ago

0.3.13-next.0

3 years ago

0.3.13-next.1

3 years ago

0.3.14

3 years ago

0.3.13

3 years ago

0.3.12

3 years ago

0.3.12-next.0

3 years ago

0.3.12-next.1

3 years ago

0.3.12-next.2

3 years ago

0.3.14-next.0

3 years ago

0.3.11-next.0

3 years ago

0.3.11-next.1

3 years ago

0.3.11

3 years ago

0.3.8

3 years ago

0.3.8-next.0

3 years ago

0.3.9

3 years ago

0.3.10

3 years ago

0.3.10-next.0

3 years ago

0.3.10-next.1

3 years ago

0.3.7

3 years ago

0.3.0

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.3-next.0

3 years ago

0.3.2-next.0

3 years ago

0.3.1-next.0

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago