Need to trigger a build after a build with Snapshot dependencies failing finishes.

There seem to be no way for me to trigger a build after another build with snapshot dependencies finishes with failures in its dependent builds.

I need to trigger a build based on a SUCCESS|FAILURE of another build with Snapshot dependencies, but the build with Snapshot dependencies doesn't start when its dependencies fail, so the "Finish Build Trigger" doesn't work for me.

Using build steps doesn't work either since the build doesn't start (it will be helpful to be able to execute build steps in Builds failing with snapshot dependencies).

REST API calls don't return the status of the last build if this couldn't start because of failures on its dependent builds.

The only way to get the real status of the build (failure) is to perform a REST query with the build id, but the are no REST calls to return the last buildId for a specific build.

Is there any way i can get the status of the build failing like this either through REST calls or from dependencies that I am not aware of?

Thanks

3 comments
Comment actions Permalink

Hi,

Have you tried to turn on snapshot dependency option "Run build even if dependency has failed"? Does it fit in your case?

0
Comment actions Permalink

Hi Alina, thanks for your reply, i don't think it does, i would need the build that has the snapshot dependencies to trigger its build steps execution options marked as "Always, even if build stop command was issued" even if its dependencies are failing.

Since this cannot be done, tried having a finish build trigger on this build but since it doesn't execute any of its build steps it won't trigger.

0
Comment actions Permalink

Hi,

Lets consider an example. We have two build configurations A -> B, B snapshot-depends on A.
Snapshot-dependency is configured as shown in attached screenshot.
In this case not depending on the result of build A (also if it fails) build B will run.



Attachment(s):
Screenshot from 2014-07-16 12:54:21.png
0

Please sign in to leave a comment.