Skip to content

CodePipelinePhaseExecution

How one phase of a code pipeline run is going, with its steps.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
phaseNamestringThe phase’s name.
statusCodePipelinePhaseExecutionStatusWhere the phase is.
dateStartdatetime | nullWhen the phase started, in UTC. Null until it starts.
dateEnddatetime | nullWhen the phase ended, in UTC. Null until it ends.
stepsCodePipelineStepExecution[]The phase’s steps, from the definition plus any added for the run or by hooks.
failureDetailsstring | nullWhy the phase failed. Null unless it did.
hookPreOutputstring | nullWhat the phase’s preHook returned, as JSON. Null when it has none or returned nothing.
hookPostOutputstring | nullWhat the phase’s postHook returned, as JSON. Null when it has none or returned nothing.
{
"phaseName": "...",
"status": "NotStarted",
"dateStart": "2026-10-26T12:00:00.0000000Z",
"dateEnd": "2026-10-26T12:00:00.0000000Z",
"steps": [
{
"id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"stepName": "...",
"agentName": "...",
"status": "NotStarted",
"output": "...",
"finalResult": "...",
"outputStructured": {},
"failureDetails": "...",
"dateStart": "2026-10-26T12:00:00.0000000Z",
"dateEnd": "2026-10-26T12:00:00.0000000Z",
"didCommit": false,
"tokenUsage": [],
"humanInteractionRequests": [],
"engineSessionId": "...",
"outputs": [],
"challengeLoopTurns": [],
"toolUseRefs": [],
"contextEntryRefs": []
}
],
"failureDetails": "...",
"hookPreOutput": "...",
"hookPostOutput": "..."
}