You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2023/01/06 03:24:21 UTC

[GitHub] [incubator-devlake-website] abeizn opened a new pull request, #374: docs: update the advanced mode plugin docs

abeizn opened a new pull request, #374:
URL: https://github.com/apache/incubator-devlake-website/pull/374

   ### ⚠️ &nbsp;&nbsp;Pre Checklist
   
   > Please complete _ALL_ items in this checklist, and remove before submitting
   
   - [ ] I have `npm run build` and `npm run serve` locally before submitting this PR
   - [ ] I have read through the [Contributing](https://devlake.apache.org/community/) Documentation
   
   # Summary
   
   <!--
   Thanks for submitting a PR! We appreciate you spending the time to work on these changes. Please fill out as many sections below as possible.
   -->
   
   ### Does this close any open issues?
   Closes xx
   
   ### Screenshots
   Include any relevant screenshots here.
   
   ### Other Information
   Any other information that is important to this PR.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake-website] Startrekzky commented on a diff in pull request #374: docs: update the advanced mode plugin docs

Posted by GitBox <gi...@apache.org>.
Startrekzky commented on code in PR #374:
URL: https://github.com/apache/incubator-devlake-website/pull/374#discussion_r1063068998


##########
docs/UserManuals/ConfigUI/AdvancedMode.md:
##########
@@ -107,32 +181,37 @@ Below is an example for collecting a Zentao workspace. Since users can configure
 ]
 ```
 
-- `connectionId`: The `ID` field from **ZENTAO Integration** page.
+- `connectionId`: The `ID` field from **Connections ZENTAO** page.
 - `productId`: optional, ZENTAO product id, see "Find Product Id" for details.
 - `projectId`: optional, ZENTAO product id, see "Find Project Id" for details.
 - `executionId`: optional, ZENTAO product id, see "Find Execution Id" for details.
 
 You must choose at least one of `productId`, `projectId` and `executionId`.
 
 #### Find Product Id
+
 1. Navigate to the Zentao Product in the browser
    ![](zentao-product.png)
 2. Click the red square annotated in the pic above
    ![](zentao-product-id.png)
 3. Then the number in the red circle above is `ProductId`
 
 #### Find Project Id
+
 1. Navigate to the Zentao Project in the browser
    ![](zentao-project-id.png)
 2. Then the number in the red square above is `ProjectId`
 
 #### Find Execution Id
+
 1. Navigate to the Zentao Execution in the browser
    ![](zentao-execution-id.png)
 2. Then the number in the red square above is `ExecutionId`
 
-### 4. Tapd
+### 6. Tapd

Review Comment:
   TAPD



##########
docs/UserManuals/ConfigUI/AdvancedMode.md:
##########
@@ -63,18 +66,20 @@ Below is an example for collecting 2 GitLab repos sequentially. It has 2 stages,
 ```
 
 ### 2. Github

Review Comment:
   GitHub



##########
docs/UserManuals/ConfigUI/AdvancedMode.md:
##########
@@ -63,18 +66,20 @@ Below is an example for collecting 2 GitLab repos sequentially. It has 2 stages,
 ```
 
 ### 2. Github
+
 Collect a GitHub repo and a Jira board in parallel

Review Comment:
   Remove the Jira part in this section and update it to 'collect multiple GitHub repos'?



##########
docs/UserManuals/ConfigUI/AdvancedMode.md:
##########
@@ -34,6 +34,7 @@ Advanced mode gives utmost flexibility to users by exposing the JSON API.
 ## Examples
 
 ### 1. Gitlab

Review Comment:
   GitLab



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake-website] Startrekzky merged pull request #374: docs: update the advanced mode plugin docs

Posted by GitBox <gi...@apache.org>.
Startrekzky merged PR #374:
URL: https://github.com/apache/incubator-devlake-website/pull/374


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake-website] Startrekzky commented on a diff in pull request #374: docs: update the advanced mode plugin docs

Posted by GitBox <gi...@apache.org>.
Startrekzky commented on code in PR #374:
URL: https://github.com/apache/incubator-devlake-website/pull/374#discussion_r1063132642


##########
docs/UserManuals/ConfigUI/AdvancedMode.md:
##########
@@ -33,7 +33,41 @@ Advanced mode gives utmost flexibility to users by exposing the JSON API.
 
 ## Examples
 
-### 1. Gitlab
+### 1. GitHub
+
+Collect multiple GitHub repos sequentially. Below is an example for collecting 2 GitHub repos sequentially. It has 2 stages, each contains a GitHub task.
+
+```
+[
+  [
+    {
+      "Plugin": "github",
+      "Options": {
+        "connectionId": 1,
+        "repo": "incubator-devlake",
+        "owner": "apache"
+      }
+    },
+    {
+      "Plugin": "github",
+      "Options": {
+        "connectionId": 1,
+        "repo": "lake",
+        "owner": "merico-dev"
+      }
+    }
+  ]
+]
+```
+
+GitHub:
+
+- `connectionId`: The `ID` field from **Connections GitHub** page.

Review Comment:
   The `ID` of your GitHub connection at page {Config-ui URL}/connections/github



##########
docs/UserManuals/ConfigUI/AdvancedMode.md:
##########
@@ -47,92 +81,114 @@ Below is an example for collecting 2 GitLab repos sequentially. It has 2 stages,
     {
       "Plugin": "gitlab",
       "Options": {
-        "projectId": 15238074
+        "connectionId": 1,
+        "projectId": 152***74
       }
     }
   ],
   [
     {
       "Plugin": "gitlab",
       "Options": {
-        "projectId": 11624398
+        "connectionId": 2,
+        "projectId": 116***98
       }
     }
   ]
 ]
 ```
 
-### 2. Github
-Collect a GitHub repo and a Jira board in parallel
+### 3. Jenkins
 
-Below is an example for collecting a GitHub repo and a Jira board in parallel. It has a single stage with a GitHub task and a Jira task. Since users can configure multiple Jira connection, it's required to pass in a `connectionId` for Jira task to specify which connection to use.
+Collect multiple Jenkins jobs sequentially. Below is an example for collecting 2 Jenkins jobs sequentially. It has 2 stages, each contains a Jenkins task.
 
 ```
 [
-  [
-    {
-      "Plugin": "github",
-      "Options": {
-        "repo": "lake",
-        "owner": "merico-dev"
-      }
-    },
-    {
-      "Plugin": "jira",
-      "Options": {
-        "connectionId": 1,
-        "boardId": 76
-      }
-    }
-  ]
+    [
+        {
+            "plugin": "jenkins",
+            "options": {
+                "connectionId": 1,
+                "scopeId": "auto_deploy"
+            }
+        }
+    ],
+    [
+        {
+            "plugin": "jenkins",
+            "options": {
+                "connectionId": 2,
+                "scopeId": "Deploy test"
+            }
+        }
+    ]
 ]
 ```
 
-### 3. Zentao
-Below is an example for collecting a Zentao workspace. Since users can configure multiple Zentao connection, it's required to pass in a `connectionId` for Tapd task to specify which connection to use.
+- `connectionId`: The `ID` field from **Connections Jenkins** page.
+- `scopeId`: Jenkins job name.
+
+### 4. Jira
+
+Collect multiple Jira boards sequentially. Below is an example for collecting 2 Jira boards sequentially. It has 2 stages, each contains a Jira task.
 
 ```
 [
-  [
-    {
-      plugin: 'zentao',
-      options: {
-        connectionId: 1,
-        productId: 1,
-        projectId: 1,
-        executionId: 1
-      }
-    }
-  ]
+    [
+        {
+            "plugin": "jira",
+            "options": {
+                "boardId": 8,
+                "connectionId": 1
+            }
+        }
+    ],
+    [
+        {
+            "plugin": "jira",
+            "options": {
+                "boardId": 26,
+                "connectionId": 1
+            }
+        }
+    ]
 ]
 ```
 
-- `connectionId`: The `ID` field from **ZENTAO Integration** page.
-- `productId`: optional, ZENTAO product id, see "Find Product Id" for details.
-- `projectId`: optional, ZENTAO product id, see "Find Project Id" for details.
-- `executionId`: optional, ZENTAO product id, see "Find Execution Id" for details.
+- `connectionId`: The `ID` field from **Connections Jira** page.
+- `boardId`: Just take a look at the URL - it will be the last number in the address. Should look something like this at the end: `RapidBoard.jspa?rapidView=8` or `/projects/xxx/boards/8`. So `8` would be the board ID in that case.
 
-You must choose at least one of `productId`, `projectId` and `executionId`.
+### 5. Jira + GitLab
 
-#### Find Product Id
-1. Navigate to the Zentao Product in the browser
-   ![](zentao-product.png)
-2. Click the red square annotated in the pic above
-   ![](zentao-product-id.png)
-3. Then the number in the red circle above is `ProductId`
+Below is an example for collecting a GitLab repo and a Jira board in parallel. It has a single stage with a GitLab task and a Jira task.

Review Comment:
   It has a single stage with a GitLab task and a Jira task. As GitLab and Jira are using their own tokens, they can be executed in parallel.



##########
docs/UserManuals/ConfigUI/AdvancedMode.md:
##########
@@ -47,92 +81,114 @@ Below is an example for collecting 2 GitLab repos sequentially. It has 2 stages,
     {
       "Plugin": "gitlab",
       "Options": {
-        "projectId": 15238074
+        "connectionId": 1,
+        "projectId": 152***74
       }
     }
   ],
   [
     {
       "Plugin": "gitlab",
       "Options": {
-        "projectId": 11624398
+        "connectionId": 2,
+        "projectId": 116***98
       }
     }
   ]
 ]
 ```
 
-### 2. Github
-Collect a GitHub repo and a Jira board in parallel
+### 3. Jenkins
 
-Below is an example for collecting a GitHub repo and a Jira board in parallel. It has a single stage with a GitHub task and a Jira task. Since users can configure multiple Jira connection, it's required to pass in a `connectionId` for Jira task to specify which connection to use.
+Collect multiple Jenkins jobs sequentially. Below is an example for collecting 2 Jenkins jobs sequentially. It has 2 stages, each contains a Jenkins task.
 
 ```
 [
-  [
-    {
-      "Plugin": "github",
-      "Options": {
-        "repo": "lake",
-        "owner": "merico-dev"
-      }
-    },
-    {
-      "Plugin": "jira",
-      "Options": {
-        "connectionId": 1,
-        "boardId": 76
-      }
-    }
-  ]
+    [
+        {
+            "plugin": "jenkins",
+            "options": {
+                "connectionId": 1,
+                "scopeId": "auto_deploy"
+            }
+        }
+    ],
+    [
+        {
+            "plugin": "jenkins",
+            "options": {
+                "connectionId": 2,
+                "scopeId": "Deploy test"
+            }
+        }
+    ]
 ]
 ```
 
-### 3. Zentao
-Below is an example for collecting a Zentao workspace. Since users can configure multiple Zentao connection, it's required to pass in a `connectionId` for Tapd task to specify which connection to use.
+- `connectionId`: The `ID` field from **Connections Jenkins** page.

Review Comment:
   The `ID` of your Jenkins connection at page {Config-ui URL}/connections/jenkins



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org