Cancelling a job may cause the next build stage to run

Imagine you have multiple stages in the build configuration.

Build starts. Stage-1 starts. You cancel the build. Stage-1 cancels. Instead of cancelling everything, Stage-2 that comes after Stage-1, starts. This shouldn’t happen right?

There are many reports of this situation, but noone seems to have tackled the problem:

  1. https://github.com/travis-ci/travis-ci/issues/9766
  2. Bogus jobs are started when a build is cancelled and there are pending jobs

Thoughts?

1 Like

It should not. Do you have a concrete example of this issue manifesting?

Happens a lot in my config here https://www.travis-ci.com/github/AudithSoftworks/LodgeOfSorceresses-Event-Planner . I will link such build next time I work on it. Should happen in coupla days max.