Skip to content

Commit ab7b4b6

Browse files
committed
add job
1 parent 0c95269 commit ab7b4b6

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
TOKEN "append" APPEND
2+
3+
# Refer to https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#job-events
4+
5+
TAGS "gitlab"
6+
7+
SCHEMA >
8+
`object_kind` String `json:$.object_kind`,
9+
`ref` String `json:$.ref`,
10+
`tag` Boolean `json:$.tag` DEFAULT 'false',
11+
`before_sha` String `json:$.before_sha` DEFAULT '',
12+
`sha` String `json:$.sha` DEFAULT '',
13+
`build_id` String `json:$.build_id` DEFAULT '',
14+
`build_name` String `json:$.build_name` DEFAULT '',
15+
`build_stage` String `json:$.build_stage` DEFAULT '',
16+
`build_status` String `json:$.build_status` DEFAULT '',
17+
`build_created_at` DateTime `json:$.build_created_at` DEFAULT now(),
18+
`build_started_at` DateTime `json:$.build_started_at` DEFAULT now(),
19+
`build_finished_at` DateTime `json:$.build_finished_at` DEFAULT now(),
20+
`build_duration` Float32 `json:$.build_duration` DEFAULT 0,
21+
`build_queued_duration` Float32 `json:$.build_queued_duration` DEFAULT 0,
22+
`build_allow_failure` Boolean `json:$.build_allow_failure` DEFAULT false,
23+
`build_failure_reason` String `json:$.build_failure_reason` DEFAULT '',
24+
`retries_count` Int32 `json:$.retries_count` DEFAULT 0,
25+
`pipeline_id` String `json:$.pipeline_id` DEFAULT '',
26+
`project_id` String `json:$.project_id`,
27+
`project_name` String `json:$.project_name`,
28+
`user_id` String `json:$.user.id`,
29+
`user` JSON `json:$.user`,
30+
`commit` JSON `json:$.commit` DEFAULT '{}',
31+
`repository_name` String `json:$.repository.name`,
32+
`repository` JSON `json:$.repository` DEFAULT '{}',
33+
`project` JSON `json:$.project` DEFAULT '{}',
34+
`runner` JSON `json:$.runner` DEFAULT '{}',
35+
`environment` JSON `json:$.environment` DEFAULT '{}',
36+
`source_pipeline` JSON `json:$.source_pipeline` DEFAULT '{}'
37+
38+
39+
ENGINE "MergeTree"
40+
ENGINE_SORTING_KEY "project_id, repository_name, pipeline_id"

0 commit comments

Comments
 (0)