0.0.0-nightly-20216321437 • Published 5 years ago

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

Weekly downloads
835
License
Apache-2.0
Repository
github
Last release
5 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
cd packages/app
yarn add @backstage/plugin-jenkins
  1. Add the EntityJenkinsContent extension to the entity page in the app:
// In packages/app/src/components/catalog/EntityPage.tsx
import { EntityJenkinsContent } 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>
    {/* other tabs... */}
    <EntityLayout.Route path="/jenkins" title="Jenkins">
      <EntityJenkinsContent />
    </EntityLayout.Route>
  1. Add proxy configuration to app-config.yaml
proxy:
  '/jenkins/api':
    target: 'http://localhost:8080' # your Jenkins URL
    changeOrigin: true
    headers:
      Authorization: Basic ${JENKINS_BASIC_AUTH_HEADER}
  1. Add an environment variable which contains the Jenkins credentials (NOTE: use an API token, not your password). Here user is the name of the user created in Jenkins.
export JENKINS_BASIC_AUTH_HEADER=$(echo -n user:api-token | base64)
  1. Run the app with yarn start

  2. Add the Jenkins folder annotation to your catalog-info.yaml, (NOTE: currently this plugin only supports folders and Git SCM)

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.

Note: If you are not using environment variables, you can directly type the API token into app-config.yaml.

proxy:
  '/jenkins/api':
    target: 'http://localhost:8080' # your Jenkins URL
    changeOrigin: true
    headers:
      Authorization: Basic YWRtaW46MTFlYzI1NmU0Mzg1MDFjM2Y1Yzc2Yjc1MWE3ZTQ3YWY4Mw==

The string starting with YWR... is the base64 encoding of the user and their API token, e.g. admin:11ec256e438501c3f5c76b751a7e47af83.

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