Build status dependency on another build of parent project, manual trigger

Hi,

I will like to achieve this scenario:

Build A of Build Configuration A of Sub Project A will run only if

- Latest build B on Branch B of Parent Project is successful.

This build will be triggered manually.

However, I can only find snapshot or artifact dependency as the only 2 dependency settings, any way I can do to achieve the scenario above?

Thanks

0
1 comment

I'm not exactly sure of your scenario. It throws me off substantially that you mention that "it will be run manually". If they will be run manually, I assume that you want to put a restriction on actually being allowed to run the build?

 

If that's the case, the only option would be to have a first build step that checks the status of the other build, and if it's not successful, it fails.

 

If what you mean with "triggered manually" is "B", then it would depend on your setup. You can set up finish build triggers, or, ideally, simply have a separate configuration for that specific branch, and a simple snapshot dependency. Trigger A instead of B, and A will only run with the last successful B (if configured to do so) or will rerun B (if set up for it).

0

Please sign in to leave a comment.