diff --git a/components/schemas/pipelines/runs/PipelineRun.yml b/components/schemas/pipelines/runs/PipelineRun.yml index eec3f506..3d802057 100644 --- a/components/schemas/pipelines/runs/PipelineRun.yml +++ b/components/schemas/pipelines/runs/PipelineRun.yml @@ -19,6 +19,14 @@ properties: pipeline_id: type: string description: The ID for the pipeline this run belongs to. + sub_queue: + description: Describes the sub queue defined during pipeline trigger, if present. + type: + - string + - "null" + skip_locks: + description: Describes if a skip lock was defined during pipeline trigger. + type: boolean stages: type: array description: An array of pipeline stages. diff --git a/platform/paths/pipelines/trigger.yml b/platform/paths/pipelines/trigger.yml index fddd118c..fff6a931 100644 --- a/platform/paths/pipelines/trigger.yml +++ b/platform/paths/pipelines/trigger.yml @@ -36,6 +36,13 @@ post: type: - string - "null" + skip_locks: + description: | + To enable skip locks, pass the current UNIX timestamp. Must be accurate within 10 minutes of the current UTC time. + This will skip lock checks when running a pipeline - the user takes all risk of ensuring two pipeline runs won't make conflicting changes. + type: + - integer + - "null" responses: 201: description: Returns a Pipeline.