This is an automated email from the ASF dual-hosted git repository. hez pushed a commit to branch update-webhook-plugin-doc in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git
commit 0d6e1c64a467959923fabd7cf91d7c3271748aca Author: Hezheng Yin <[email protected]> AuthorDate: Mon Oct 10 22:52:03 2022 -0700 docs: rephrase the GitHub Actions example --- docs/Plugins/webhook.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/Plugins/webhook.md b/docs/Plugins/webhook.md index 8b1f86e3c..63e8238fb 100644 --- a/docs/Plugins/webhook.md +++ b/docs/Plugins/webhook.md @@ -92,15 +92,16 @@ Read more in Swagger: http://localhost:4000/api/swagger/index.html#/plugins%2Fwe ## Deployments -Adding pipeline webhook in your deploy shells will help you collect data into DevLake. +If your CI/CD tool isn't already supported by DevLake, you can insert curl commands in your CI/CD script to post deployment data to DevLake. -First, let us know there are two entities: Tasks and Pipelines. A pipeline means one build or deployment, and a pipeline may have more than one task. +DevLake models CI/CD domain with two entities: Pipelines and Tasks. A pipeline has many tasks. - +Take GitHub Actions as an example, the screenshot below shows a GitHub Actions workflow, which consists of 6 jobs including `golangci-lint`, `unit-test`, and etc. When DevLake normalizes data from GitHub Actions, it creates the following records in the domain layer: -(Example 1) +- 1 entry in cicd_pipelines table, corresponds to the GitHub workflow +- 6 entries in cicd_tasks table, one for each job in the GitHub workflow -For example, we can find 6 tasks like `golangci-lint` and `unit-test` in one GitHub pipeline. + 
