say
- command:
- some subCommand
hard_fail: true
- some subCommand
And if subCommand returns non zero - the whole bulid is cancelled and marked as failed.
The solution with “wait” between jobs works incorrectly for case where two different machines (which supposed to run in parallel) generate substeps.