We are using a fairly dated enterprise travis version that doesn’t use workspaces yet. So after hacking a workspaces implementation with shell scripts and github. I have finally encountered a problem I can’t figure out.
I want my
report stage to run even if the previous integration stages failed but I still want to fail the build.
jobs: include: - stage: integration - stage: integration - stage: reports # I want this stage to run regardless of failure in the integration
What I’ve tried
allow_failuresdoes not satisfy this requirement as it will not fail the build if my integration tests fail
- Move report section into
after_sucessin each job. This is not possible due to concurent builds. It creates a race condition ie. I need a
final_after_failurewhich waits until all runners are complete, and one failed.
before_deploythis is not possible for us as our deploy only takes place on
masterbranch, wheras the reports should be generated on every branch