Execute job when any job of previous stage succeeds
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
I want to execute a job in my pipeline when any job of the previous stage succeeds.
Our scenario is as follows:

Our pipeline is running Terraform's plan and apply methods. In the Apply stage, the apply_auto job wil succeed when the detected number of changes is smaller than a given threshold. When the number of changes Terraform detects exceeds the threshold, the apply_auto job fails and the changes will not be automatically deployed.
In that case, we must use the manual apply_force step which "forces" us to review the changes and manually trigger the deploy.
Now, I want the .post step to run when either apply_auto or apply_force succeeds. Currently it has when: on_success configured, resulting in that step not running when we use the apply_force job (as you can see in the screenshot above).
Intended users
- Delaney (Development Team Lead)
- Sasha (Software Developer)
- Devon (DevOps Engineer)
- Sidney (Systems Administrator)
Further details
Proposal
Maybe another value for the when property of the gitlab yml file. when: any_of_previous_stage_succeeds