This is an automated email from the ASF dual-hosted git repository. warren pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit d210d05250dc7b4a307bdb82c8d9594bd088239d Author: abeizn <[email protected]> AuthorDate: Thu Jun 16 09:46:22 2022 +0800 feat: add docs about multi-data connections support for Jenkins --- models/migrationscripts/updateSchemas20220612.go | 2 ++ plugins/jenkins/README.md | 33 ++++++++++++------------ 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/models/migrationscripts/updateSchemas20220612.go b/models/migrationscripts/updateSchemas20220612.go index 625d1bdb..60e42814 100644 --- a/models/migrationscripts/updateSchemas20220612.go +++ b/models/migrationscripts/updateSchemas20220612.go @@ -5,7 +5,9 @@ this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/plugins/jenkins/README.md b/plugins/jenkins/README.md index 812500bb..95e89962 100644 --- a/plugins/jenkins/README.md +++ b/plugins/jenkins/README.md @@ -1,14 +1,5 @@ # Jenkins -<div align="center"> - -| [English](README.md) | [中文](README-zh-CN.md) | -| --- | --- | - -</div> - -<br> - ## Summary This plugin collects Jenkins data through [Remote Access API](https://www.jenkins.io/doc/book/using/remote-access-api/). It then computes and visualizes various devops metrics from the Jenkins data. @@ -17,10 +8,10 @@ This plugin collects Jenkins data through [Remote Access API](https://www.jenkin ## Metrics -Metric Name | Description -:------------ | :------------- -Build Count | The number of builds created -Build Success Rate | The percentage of successful builds +| Metric Name | Description | +| :----------------- | :---------------------------------- | +| Build Count | The number of builds created | +| Build Success Rate | The percentage of successful builds | ## Configuration @@ -51,7 +42,9 @@ In order to collect data, you have to compose a JSON looks like following one, a [ { "plugin": "jenkins", - "options": {} + "options": { + "connectionId": 1 + } } ] ] @@ -63,7 +56,9 @@ and if you want to perform certain subtasks. { "plugin": "jenkins", "subtasks": ["collectXXX", "extractXXX", "convertXXX"], - "options": {} + "options": { + "connectionId": 1 + } } ] ] @@ -79,7 +74,9 @@ curl --location --request POST 'localhost:8080/pipelines' \ "name": "jenkins 20211126", "tasks": [[{ "plugin": "jenkins", - "options": {} + "options": { + "connectionId": 1 + } }]] } ' @@ -94,7 +91,9 @@ curl --location --request POST 'localhost:8080/pipelines' \ "tasks": [[{ "plugin": "jenkins", "subtasks": ["collectXXX", "extractXXX", "convertXXX"], - "options": {} + "options": { + "connectionId": 1 + } }]] } '
