GitlabImport

Reads GitLab CI output that was saved to a file: a job trace and the pipeline JSON (the pipeline object, an object with a jobs array, or the jobs array alone). The runner version, executor and image in the trace become capsule attributes with source trace.

Functions

Link copied to clipboard
fun run(trace: String, summary: String?, id: String): Import

The trace, plus the outcome and jobs of summary when it is given.

Link copied to clipboard
fun summary(text: String): Import

The outcome and the jobs (as steps, with the stage as the job) of the pipeline JSON.

Link copied to clipboard
fun trace(text: String, id: String): Import

The outcome comes from the final Job succeeded or ERROR: Job failed line, if any.