Next stage starts if jobs are canceled in previous stage

I have for one of my builds two stages and they are:

  1. Build & Test

  2. Assemble & Push Docker

Right now I can see from the Travis UI that I could cancel / Re-schedule each of this build stage individually and I can see that this could be problematic. Is there a way to make the stages dependent on each other explicitly?

How exactly could that “be problematic”? What are you trying to achieve? Please give an example if possible.

A following stage only runs if the previous one completes successfully. If a job completes successfully but there’s actually a problem, that’s a fault in the job’s logic.

1 Like