export interface IPipelineRun { _id: string; end?: number; error?: { type: string; message: string; }; event?: string; root: string; stages: Array<{ steps: IPipelineRunStep[]; }>; status?: string; start?: number; token?: string; } export interface IPipelineRunStep { _id: string; args?: string[]; command?: string[]; end?: number; entrypoint?: string[]; error?: { type: string; message: string; }; exitCode?: number; image: string; params?: { [key: string]: string; }; pipeline: string; start?: number; status?: string; token?: string; workingdir?: string; } export interface IPipelineTrigger { /** * The event type. */ type: 'revision' | 'commit' | 'release'; /** * The files to match events for. */ files: string; } export interface IPipelineYmlV1 { /** * The pipeline version schema. */ $schema: 'http://schemas.stemn.com/pipeline+v1' | 'https://schemas.stemn.com/pipeline+v1'; /** * A label describing the pipeline. */ label: string; /** * The event/s that will cause the pipeline to run. */ triggers: IPipelineTrigger[]; /** * The list of stages. These are executed in series. */ stages: Array<{ /** * A label describing the stage. */ label: string; /** * The list of steps for each stage. These are executed in parallel. */ steps: Array<{ /** * A label describing the step. */ label: string; /** * The container to run for the step. */ image: string; /** * Arguments to pass to the container. */ args?: string | string[]; /** * Arguments to pass to the container. */ entrypoint?: string[]; /** * A command to invoke inside the container. */ command?: string[]; /** * A script to invoke using the container's shell interpreter. */ script?: string[]; /** * The files required by the step. */ inputFiles?: string | string[]; /** * The files to be retained from the step. */ outputFiles?: string | string[]; /** * Input parameters to the step. */ params?: { [key: string]: boolean | number | string; }; }>; }>; } //# sourceMappingURL=pipeline.d.ts.map