0.0.0-nightly-20220824025846 • Published 3 years ago

@backstage/plugin-jenkins v0.0.0-nightly-20220824025846

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

Jenkins Plugin (Alpha)

Website: https://jenkins.io/

Setup

  1. If you have a standalone app (you didn't clone this repo), then do
# From your Backstage root directory
yarn add --cwd packages/app @backstage/plugin-jenkins
  1. Add and configure the jenkins-backend plugin according to it's instructions

  2. Add the EntityJenkinsContent extension to the CI/CD page and EntityLatestJenkinsRunCard to the overview page in the app (or wherever you'd prefer):

Note that if you configured a custom JenkinsInfoProvider in step 2, you may need a custom isJenkinsAvailable. Also if you're transitioning to a new default branch name, you can pass multiple branch names as a comma-separated list and it will check for each branch name.

// In packages/app/src/components/catalog/EntityPage.tsx
import {
  EntityJenkinsContent,
  EntityLatestJenkinsRunCard,
  isJenkinsAvailable,
} from '@backstage/plugin-jenkins';

// You can add the tab to any number of pages, the service page is shown as an
// example here
const serviceEntityPage = (
  <EntityLayout>
    <EntityLayout.Route path="/" title="Overview">
      {/* ... */}
      <EntitySwitch>
        <EntitySwitch.Case if={isJenkinsAvailable}>
          <Grid item sm={6}>
            <EntityLatestJenkinsRunCard
              branch="main,master"
              variant="gridItem"
            />
          </Grid>
        </EntitySwitch.Case>
        {/* ... */}
      </EntitySwitch>
    </EntityLayout.Route>
    {/* other tabs... */}
    <EntityLayout.Route path="/ci-cd" title="CI/CD">
      <EntitySwitch>
        <EntitySwitch.Case if={isJenkinsAvailable}>
          <EntityJenkinsContent />
        </EntitySwitch.Case>
        {/* ... */}
      </EntitySwitch>
    </EntityLayout.Route>
    {/* ... */}
  </EntityLayout>
);
  1. Run app with yarn start
  2. Add the Jenkins folder annotation to your catalog-info.yaml.

Currently, this plugin only supports folders and Git SCM. Note that if you configured a custom JenkinsInfoProvider in step 2, you may need to use a different annotation scheme here

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: 'your-component'
  description: 'a description'
  annotations:
    jenkins.io/github-folder: 'folder-name/project-name'
spec:
  type: service
  lifecycle: experimental
  owner: your-name
  1. Register your component

  2. Click the component in the catalog. You should now see Jenkins builds, and a last build result for your master build.

Features

  • View all runs inside a folder
  • Last build status for specified branch
  • View summary of a build

Limitations

  • Only works with organization folder projects backed by GitHub
  • No pagination support currently, limited to 50 projects - don't run this on a Jenkins instance with lots of builds
0.9.10

2 years ago

0.9.9

2 years ago

0.9.9-next.1

2 years ago

0.9.9-next.0

2 years ago

0.9.8

2 years ago

0.9.7

2 years ago

0.9.6

2 years ago

0.9.6-next.2

2 years ago

0.9.6-next.1

2 years ago

0.9.6-next.0

2 years ago

0.9.5

2 years ago

0.9.5-next.3

2 years ago

0.9.5-next.2

2 years ago

0.9.5-next.1

2 years ago

0.9.5-next.0

2 years ago

0.9.4

2 years ago

0.9.4-next.2

2 years ago

0.9.4-next.1

2 years ago

0.9.4-next.0

2 years ago

0.9.3

2 years ago

0.9.3-next.3

2 years ago

0.9.3-next.2

2 years ago

0.9.3-next.1

2 years ago

0.9.3-next.0

2 years ago

0.9.0

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.8.6-next.3

2 years ago

0.8.6-next.2

2 years ago

0.8.6-next.1

2 years ago

0.8.5

2 years ago

0.8.4

2 years ago

0.8.6

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.8.3-next.0

2 years ago

0.8.3-next.2

2 years ago

0.8.3-next.1

2 years ago

0.8.7-next.1

2 years ago

0.8.7-next.2

2 years ago

0.8.2-next.1

3 years ago

0.8.2-next.2

3 years ago

0.8.7-next.0

2 years ago

0.9.1-next.0

2 years ago

0.9.1-next.1

2 years ago

0.9.1-next.2

2 years ago

0.8.5-next.0

2 years ago

0.8.2-next.0

3 years ago

0.8.1

3 years ago

0.8.1-next.3

3 years ago

0.8.1-next.2

3 years ago

0.8.0

3 years ago

0.7.17-next.2

3 years ago

0.7.17-next.1

3 years ago

0.8.1-next.0

3 years ago

0.8.1-next.1

3 years ago

0.7.16-next.3

3 years ago

0.7.16

3 years ago

0.7.17-next.0

3 years ago

0.7.16-next.0

3 years ago

0.7.16-next.1

3 years ago

0.7.16-next.2

3 years ago

0.7.15-next.0

3 years ago

0.7.15-next.2

3 years ago

0.7.15-next.1

3 years ago

0.7.15

3 years ago

0.7.14

3 years ago

0.7.13

3 years ago

0.7.13-next.1

3 years ago

0.7.13-next.2

3 years ago

0.7.14-next.0

3 years ago

0.7.14-next.1

3 years ago

0.7.14-next.2

3 years ago

0.7.10-next.1

3 years ago

0.7.10-next.0

3 years ago

0.7.11-next.1

3 years ago

0.7.11-next.2

3 years ago

0.7.11-next.0

3 years ago

0.7.11-next.3

3 years ago

0.7.11-next.4

3 years ago

0.7.9

3 years ago

0.7.11

3 years ago

0.7.10

3 years ago

0.7.12

3 years ago

0.7.13-next.0

3 years ago

0.7.9-next.2

3 years ago

0.7.9-next.1

3 years ago

0.7.9-next.0

3 years ago

0.7.8

3 years ago

0.7.8-next.0

3 years ago

0.7.8-next.3

3 years ago

0.7.8-next.1

3 years ago

0.7.8-next.2

3 years ago

0.7.7-next.2

3 years ago

0.7.7-next.1

3 years ago

0.7.7-next.0

3 years ago

0.7.6

3 years ago

0.7.5

4 years ago

0.7.7

3 years ago

0.7.5-next.0

4 years ago

0.7.5-next.1

4 years ago

0.7.6-next.0

4 years ago

0.7.6-next.2

4 years ago

0.7.6-next.1

4 years ago

0.7.6-next.3

4 years ago

0.7.4

4 years ago

0.7.4-next.0

4 years ago

0.7.4-next.2

4 years ago

0.7.4-next.1

4 years ago

0.7.1-next.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.3

4 years ago

0.7.3-next.0

4 years ago

0.7.3-next.1

4 years ago

0.7.0

4 years ago

0.5.18

4 years ago

0.5.19

4 years ago

0.5.16

4 years ago

0.5.17

4 years ago

0.5.14

4 years ago

0.5.15

4 years ago

0.5.20-next.0

4 years ago

0.5.19-next.0

4 years ago

0.5.21

4 years ago

0.5.20

4 years ago

0.6.0

4 years ago

0.5.18-next.0

4 years ago

0.5.12

4 years ago

0.5.13

4 years ago

0.5.10

4 years ago

0.5.11

4 years ago

0.5.9

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

5 years ago

0.4.7

5 years ago

0.4.6

5 years ago

0.4.5

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.6

5 years ago

0.3.7

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.1-alpha.26

5 years ago

0.1.1-alpha.25

5 years ago

0.1.1-alpha.24

5 years ago

0.1.1-alpha.23

5 years ago

0.1.1-alpha.22

5 years ago

0.1.1-alpha.21

5 years ago

0.1.1-alpha.20

5 years ago

0.1.1-alpha.19

5 years ago

0.1.1-alpha.18

5 years ago