tree: e8117eaa2f2beffadf9c04f94277cdd808683b30 [path history] [tgz]
  1. models/
  2. tasks/
  3. jenkins.go
  4. README-zh-CN.md
  5. README.md
plugins/jenkins/README.md

Jenkins pond

Metrics

Metric NameDescription
Build CountThe number of builds created
Build Success RateThe percentage of successful builds

Configuration

In your .env file, you will need to set up

# Jenkins configuration
JENKINS_ENDPOINT=https://jenkins.merico.cn/
JENKINS_USERNAME=your user name here
JENKINS_PASSWORD=your password or jenkins token here

You can generate access token at User -> Configure -> API Token section.

Gathering data with jenkins

To collect data, you can make a POST request to /task

curl --location --request POST 'localhost:8080/task' \
  --header 'Content-Type: application/json' \
  --data-raw '[[{
      "plugin": "jenkins",
      "options": {}
  }]]'