0.0.0-nightly-202192621851 • Published 5 years ago

@backstage/plugin-azure-devops v0.0.0-nightly-202192621851

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

Azure DevOps Plugin

Website: https://dev.azure.com/

Features

Azure Pipelines

Lists the top n builds for a given repository where n is a configurable value

Azure Pipelines Builds Example

Setup

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

Azure DevOps Backend

You need to setup the Azure DevOps backend plugin before you move forward with any of these steps if you haven't already

Entity Annotation

To be able to use the Azure DevOps plugin you need to add the following annotation to any entities you want to use it with:

dev.azure.com/project-repo: <project-name>/<repo-name>

Let's break this down a little: <project-name> will be the name of your Team Project and <repo-name> will be the name of your repository which needs to be part of the Team Project you entered for <project-name>.

Here's what that will look like in action:

# Example catalog-info.yaml entity definition file
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  # ...
  annotations:
    dev.azure.com/project-repo: my-project/my-repo
spec:
  type: service
  # ...

Azure Pipelines Component

To get the Azure Pipelines component working you'll need to do the following two steps:

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

    # From your Backstage root directory
    cd packages/app
    yarn add @backstage/plugin-azure-devops
  2. Second we need to add the EntityAzurePipelinesContent extension to the entity page in your app:

    // In packages/app/src/components/catalog/EntityPage.tsx
    import {
      EntityAzurePipelinesContent,
      isAzureDevOpsAvailable,
    } from '@backstage/plugin-azure-devops';
    
    // For example in the CI/CD section
    const cicdContent = (
      <EntitySwitch>
        // ...
        <EntitySwitch.Case if={isAzureDevOpsAvailable}>
           // Set defaultLimit to the max number of builds you would like to be able to see
           // the default if not set is 10
           <EntityAzurePipelinesContent defaultLimit={25} />
        </EntitySwitch.Case>
        // ...
      </EntitySwitch>

Limitations

  • Currently multiple organizations are not supported
  • Mixing Azure DevOps Services (cloud) and Azure DevOps Server (on-premise) is not supported
0.4.4

2 years ago

0.4.3

2 years ago

0.4.3-next.1

2 years ago

0.4.3-next.0

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.0-next.2

2 years ago

0.4.0-next.1

2 years ago

0.4.0-next.0

2 years ago

0.3.12

2 years ago

0.3.12-next.3

2 years ago

0.3.12-next.2

2 years ago

0.3.12-next.1

2 years ago

0.3.12-next.0

2 years ago

0.3.11

2 years ago

0.3.11-next.2

2 years ago

0.3.11-next.1

2 years ago

0.3.11-next.0

2 years ago

0.3.10

2 years ago

0.3.10-next.3

2 years ago

0.3.10-next.2

2 years ago

0.3.10-next.1

3 years ago

0.3.8-next.1

3 years ago

0.3.8-next.2

3 years ago

0.3.3-next.0

3 years ago

0.3.3-next.1

3 years ago

0.3.8-next.0

3 years ago

0.3.7-next.1

3 years ago

0.3.7-next.0

3 years ago

0.3.7-next.2

3 years ago

0.3.6-next.1

3 years ago

0.3.6-next.2

3 years ago

0.3.6-next.3

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.2

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2-next.2

3 years ago

0.3.2-next.1

3 years ago

0.3.5-next.0

3 years ago

0.3.9

3 years ago

0.3.10-next.0

3 years ago

0.3.1-next.2

3 years ago

0.3.1-next.3

3 years ago

0.3.1

3 years ago

0.3.2-next.0

3 years ago

0.2.9-next.1

3 years ago

0.3.0-next.2

3 years ago

0.3.1-next.0

3 years ago

0.3.1-next.1

3 years ago

0.3.0

3 years ago

0.2.9-next.0

3 years ago

0.2.8-next.3

3 years ago

0.2.8

3 years ago

0.2.8-next.1

3 years ago

0.2.8-next.0

3 years ago

0.2.8-next.2

3 years ago

0.2.7-next.2

3 years ago

0.2.7-next.1

3 years ago

0.2.7-next.0

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5-next.2

3 years ago

0.2.5-next.1

3 years ago

0.2.6-next.0

3 years ago

0.2.6-next.1

3 years ago

0.2.6-next.2

3 years ago

0.2.5

3 years ago

0.2.5-next.0

3 years ago

0.2.3-next.2

3 years ago

0.2.3-next.1

4 years ago

0.2.3-next.0

4 years ago

0.2.3-next.4

3 years ago

0.2.3-next.3

3 years ago

0.2.2-next.1

4 years ago

0.2.2-next.0

4 years ago

0.2.1

4 years ago

0.2.3

3 years ago

0.2.2

4 years ago

0.2.4

3 years ago

0.2.1-next.1

4 years ago

0.2.1-next.2

4 years ago

0.2.1-next.0

4 years ago

0.2.0-next.3

4 years ago

0.2.0-next.2

4 years ago

0.2.0-next.1

4 years ago

0.2.0-next.0

4 years ago

0.2.0

4 years ago

0.1.22-next.1

4 years ago

0.1.22-next.0

4 years ago

0.1.24-next.1

4 years ago

0.1.24-next.0

4 years ago

0.1.22

4 years ago

0.1.23

4 years ago

0.1.24

4 years ago

0.1.23-next.3

4 years ago

0.1.23-next.2

4 years ago

0.1.23-next.1

4 years ago

0.1.23-next.0

4 years ago

0.1.21-next.2

4 years ago

0.1.21-next.0

4 years ago

0.1.21-next.1

4 years ago

0.1.21

4 years ago

0.1.18-next.0

4 years ago

0.1.20

4 years ago

0.1.18

4 years ago

0.1.19

4 years ago

0.1.20-next.1

4 years ago

0.1.20-next.0

4 years ago

0.1.17

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.14-next.0

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.13-next.0

4 years ago

0.1.11-next.0

4 years ago

0.1.16

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.5

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago