jenkins

command
v0.11.0-test2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

README

Jenkins


Summary

This plugin collects Jenkins data through Remote Access API. It then computes and visualizes various devops metrics from the Jenkins data.

image

Metrics

Metric Name Description
Build Count The number of builds created
Build Success Rate The percentage of successful builds

Configuration

In order to fully use this plugin, you will need to set various configurations via Dev Lake's config-ui.

By config-ui

The connection aspect of the configuration screen requires the following key fields to connect to the Jenkins API. As Jenkins is a single-source data provider at the moment, the connection name is read-only as there is only one instance to manage. As we continue our development roadmap we may enable multi-source connections for Jenkins in the future.

  • Connection Name [READONLY]
    • ⚠️ Defaults to "Jenkins" and may not be changed.
  • Endpoint URL (REST URL, starts with https:// or http://i, ends with /)
    • This should be a valid REST API Endpoint eg. https://ci.jenkins.io/
  • Username (E-mail)
    • Your User ID for the Jenkins Instance.
  • Password (Secret Phrase or API Access Token)
    • Secret password for common credentials.
    • For help on Username and Password, please see official Jenkins Docs on Using Credentials
    • Or you can use API Access Token for this field, which can be generated at User -> Configure -> API Token section on Jenkins.

Click Save Connection to update connection settings.

Collect Data From Jenkins

In order to collect data from Jenkins, you have to compose a JSON looks like following one, and send it via Triggers page on config-ui:

[
  [
    {
      "plugin": "jenkins",
      "options": {}
    }
  ]
]

Relationship between job and build

Build is kind of a snapshot of job. Running job each time creates a build.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL