Is it possible to run next workflow conditionally?

#1

According to https://devcenter.bitrise.io/steps-and-workflows/managing-workflows/ I can choose a workflow which should be executed after my first workflow finishes.
Is it possible to run the subsequent workflow only if the first one failed?

For steps we have:
- run_if: ".IsBuildFailed"

but is it possible with workflows?

0 Likes

#2

Hi there!

Unfortunately this isn’t entirely possible, and you might be misunderstanding the concept of workflow chaining, in that if you do chain them together, they will run as one united workflow. One after the other, but inside the same build machine.

If I understand correctly you’d like to automatically retry failed builds?

0 Likes

#3

That’s exactly what I was going for :slight_smile:
But maybe with some smarts added to it e.g. if 1 test out of 100 failed I would be able to pass some additional info and rerun only it. That would be something extra though :slight_smile:

0 Likes

#4

Actually that’s what I was going for so that I don’t have to build everything from scratch but can just rerun tests since the app is already compiled.

0 Likes

#5

I see! Unfortunately there isn’t a way to make this happen at the moment, but there’s very related feature request about retrying steps on failures, that might interest you! Retry mechanism on tasks

0 Likes

closed #6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes