Closed ffjlabo closed 3 weeks ago
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity. Feel free to reopen if still applicable.
What this PR does / why we need it:
I fixed to finish executing the SCRIPT_RUN_ROLLBACK stage successfully when the pipeline has multiple SCRIPT_RUN stages.
Currently, the SCRIPT_RUN_ROLLBACK stage is predefined, and it is assumed that there are multiple in the pipeline. But we should modify the spec to execute only one SCRIPT_RUN_ROLLBACK. context: https://github.com/pipe-cd/pipecd/issues/5163#issuecomment-2333248785
app.pipecd.yaml
The execution flow
The example scenario is when canceling the last SCRIPT_RUN stage with above pipeline.
on planning
scriptRunBaseStageIDs
value: comma-separated stage ID for each SCRIPTRUN stage.scriptRun.<stage-id>.option
value: JSON encoded string ofconfig.ScriptRunStageOptions
.on scheduling
scriptRunTargetStageIDs
.on deploying
scriptRunTargetStageIDs
scriptRun.<stage-id>.option
ScriptRunOpts.OnRollback
commandWhich issue(s) this PR fixes:
Fixes #5163
Does this PR introduce a user-facing change?: