Build step: run only if status successful

I have a build A that has snapshot dependencies B and C. I have A set to run even if the dependencies have failed. I have a build step in A that is set to run only if the build status is successful. I ran a build of A which triggered a build of C. The build of C failed. The build step in A still ran. My expectation is that the build step in A will not run.

The first line of the build log of A indicates that the status is being set to failed. Am I missing something here? Why did my build step run?

3 comments
Comment actions Permalink

If dependency fails, then the status of all downstream builds will be set to failed as well

0
Comment actions Permalink

Yes, but that is not my question. I have a build step set to run only if status is successful. It runs despite a dependency failure. My expectation is that it would not run.

0
Comment actions Permalink

It turns out that this check is not performed, if the build runner is the first in the list. Please try adding another (fake) runner in front of it.

0

Please sign in to leave a comment.