[Buildbot-devel] Not executing a step if the build is about to fail
Axel Hecht
l10n.moz at googlemail.com
Tue Jul 15 09:25:04 UTC 2008
2008/7/15 Sergey A. Lipnevich <sergey at optimaltec.com>:
> Hi,
>
> I have a build that has the following structure:
> prepare (halt on failure)
> before (halt on failure)
> build (flunk on failure)
> after (flunk on failure)
> package (flunk on failure)
> kick off more builds without waiting for completion
>
> I'd like "package" and "kick off more builds" steps not to run if
> anything in front of them in the chain fails (mostly, if "build" fails).
> At the same time, if "before" succeeds, "after" *must* run. In effect, I
> need a "don't run this step if build as a whole is guaranteed to fail"
> flag. What would be the best way to accomplish this?
> Thank you,
To add to what Dustin said, here's a way to hack around it:
You could set the haltOnFailure of the after step inside the after
step, depending on the results of the previous steps. Or insert a
dummy "abortIfBuildFailed" step after "after", if you want to see if
that succeeded.
It's a bit like good old basic goto's, but it should get the job done
until Dustin has his dreams out of the dust. Oh, gosh, it's bad pun
day.
Axel
More information about the devel
mailing list