You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by yu...@apache.org on 2022/08/25 10:13:54 UTC
[incubator-devlake-website] branch main updated: docs(datamodels): add cicd
This is an automated email from the ASF dual-hosted git repository.
yumeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git
The following commit(s) were added to refs/heads/main by this push:
new 8584e1e0 docs(datamodels): add cicd
8584e1e0 is described below
commit 8584e1e00e99a3acaeef5ebfb90f0ba444c48cbc
Author: Yingchu Chen <yi...@merico.dev>
AuthorDate: Thu Aug 25 14:25:20 2022 +0800
docs(datamodels): add cicd
closes #2728
---
docs/DataModels/DevLakeDomainLayerSchema.md | 52 +++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/docs/DataModels/DevLakeDomainLayerSchema.md b/docs/DataModels/DevLakeDomainLayerSchema.md
index 00896bef..46fd24dc 100644
--- a/docs/DataModels/DevLakeDomainLayerSchema.md
+++ b/docs/DataModels/DevLakeDomainLayerSchema.md
@@ -450,6 +450,58 @@ A build is an execution of a job.
| `status` | varchar | 255 | The result of build. The values may be 'success', 'failed', etc. | |
| `commit_sha` | char | 40 | The specific commit being built on. Nullable. | |
+#### cicd_pipelines
+
+A cicd_pipeline is a series of builds that have connections or a standalone build.
+
+| **field** | **type** | **length** | **description** | **key** |
+| :----------------- | :-------------- | :--------- | :-------------------------------------------------------------- | :------ |
+| `id` | varchar | 255 | This key is generated based on details from the original plugin | PK |
+| `created_at` | datetime | 3 | | |
+| `updated_at` | datetime | 3 | | |
+| `name` | varchar | 255 | | |
+| `commit_sha` | varchar | 255 | | |
+| `branch` | varchar | 255 | | |
+| `repo` | varchar | 255 | | |
+| `result` | varchar | 100 | | |
+| `status` | varchar | 100 | | |
+| `type` | varchar | 100 | to indicate this is CI or CD | |
+| `duration_sec` | bigint unsigned | | | |
+| `created_date` | datetime | 3 | | |
+| `finished_date` | datetime | 3 | | |
+
+#### cicd_pipeline_repos
+
+A map between cic_pipeline and repo info.
+
+| **field** | **type** | **length** | **description** | **key** |
+| :----------- | :------- | :--------- | :-------------------------------------------------------------- | :------ |
+| `commit_sha` | varchar | 255 | | PK |
+| `branch` | varchar | 255 | | |
+| `repo_url` | varchar | 255 | | |
+| `id` | varchar | 255 | This key is generated based on details from the original plugin | PK |
+| `created_at` | datetime | 3 | | |
+| `updated_at` | datetime | 3 | | |
+
+
+#### cicd_tasks
+
+A cicd_task is a single job of ci/cd.
+
+| **field** | **type** | **length** | **description** | **key** |
+| :----------------- | :-------------- | :--------- | :-------------------------------------------------------------- | :------ |
+| `id` | varchar | 255 | This key is generated based on details from the original plugin | PK |
+| `created_at` | datetime | 3 | | |
+| `updated_at` | datetime | 3 | | |
+| `name` | varchar | 255 | | |
+| `pipeline_id` | varchar | 255 | | |
+| `result` | varchar | 100 | | |
+| `status` | varchar | 100 | | |
+| `type` | varchar | 100 | to indicate this is CI or CD | |
+| `duration_sec` | bigint unsigned | | | |
+| `started_date` | datetime | 3 | | |
+| `finished_date` | datetime | 3 | | |
+
### Cross-Domain Entities