The input.stage object is present in most spinnaker.execution.stages.before packages, and contains stage metadata.

Since most policies are written to be stage specific, the values in input.stage are less likely to be useful when creating policy scripts.

Key Type Description
input.stage.endTime The time at which the stage finished executing. This is blank since the stage has not yet completed. string The unique ID for the stage.
input.stage.lastModified When the stage was last modified. string The name of the stage.
input.stage.outputs {object} DO NOT USE. This contains numerous manifests/artifacts created by the execution of the stage. Typically policies should be written against the inputs to the stage, not its outputs.
input.stage.parentStageId string
input.stage.refId string This stages ID reference in the stage graph. Typically if you are writing a policy that depends on pipeline stage order, it is better to write that policy against either the opa.pipelines bpackage, or the spinnaker.execution.pipelines.before package.
input.stage.scheduledTime number
input.stage.startTime number The timestamp at which the stage started
input.stage.status string The stages status, this is typically ‘running’ when this policy is evaluated.
input.stage.syntheticStageOwner string
input.stage.tasks[].endTime number The time at which the task finished executing.
input.stage.tasks[].id string
input.stage.tasks[].implementingClass string The name of the spinnaker class that implements this task.
input.stage.tasks[].loopEnd boolean
input.stage.tasks[].loopStart boolean
input.stage.tasks[].name string The name of the task being executed. Each stage executes multiple tasks to accomplish its goals.
input.stage.tasks[].stageEnd boolean
input.stage.tasks[].stageStart boolean
input.stage.tasks[].startTime number The time at which the task started exeucting.
input.stage.tasks[].status string The status of the task.
input.stage.type string The current state of activity of the stage.

Last modified July 28, 2021: (f3a804d)