File: pipelines.t

package info (click to toggle)
gcli 2.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,596 kB
  • sloc: ansic: 26,273; sh: 601; makefile: 538; perl: 374; yacc: 261; lex: 59
file content (46 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include "gcli/gitlab/pipelines.h";

parser gitlab_pipeline is
object of struct gitlab_pipeline with
	("status"     => status as string,
	 "created_at" => created_at as iso8601_time,
	 "updated_at" => updated_at as iso8601_time,
	 "ref"        => ref as string,
	 "sha"        => sha as string,
	 "source"     => source as string,
	 "id"         => id as id,
	 "web_url"    => web_url as string);

parser gitlab_pipelines is
array of struct gitlab_pipeline use parse_gitlab_pipeline;

parser gitlab_job_runner is
object of struct gitlab_job with
	("name"        => runner_name as string,
	 "description" => runner_description as string);

parser gitlab_job is
object of struct gitlab_job with
	("status"      => status as string,
	 "stage"       => stage as string,
	 "name"        => name as string,
	 "ref"         => ref as string,
	 "created_at"  => created_at as iso8601_time,
	 "started_at"  => started_at as iso8601_time,
	 "finished_at" => finished_at as iso8601_time,
	 "runner"      => use parse_gitlab_job_runner,
	 "duration"    => duration as double,
	 "id"          => id as id,
	 "coverage"    => coverage as double,
	 "web_url"     => web_url as string);

parser gitlab_jobs is
array of struct gitlab_job use parse_gitlab_job;

parser gitlab_pipeline_child is
object of struct gitlab_pipeline with
	("downstream_pipeline" => use parse_gitlab_pipeline,
	 "name"                => name as string);

parser gitlab_pipeline_children is
array of struct gitlab_pipeline use parse_gitlab_pipeline_child;