Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: #5163 (comment)
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?: