Implementing GitFlow - Artifact Dependency
Hi,
Using the following example I was able to get the GitFlow model working within my automated build process, however I am now encountering an issue when trying to introduce an additional project; which has an artifact dependency on my GitFlow project. The expected behaviour is that any changes in any of the monitored branches triggers my GitFlow build project, which in-turn triggers the dependent project on successful build; completing it's steps using the artifacts from the parent. However what actually happens is that my GitFlow step triggers correctly, but on completion nothing happens in the dependent project.
If I run the dependent project manually it tries to run the build tasks against the default branch (master) in the GitFlow project (incorrect), and if I run the dependent project manually but point it at the relevant branch it does run, but the artifacts it uses are the ones from the master branch.
I've setup the dependency as follows:


Please sign in to leave a comment.
Hi Dave,
The recommended approach for handling build chains is to move the VCS Triggers to the end of the chain when possible. In this scenario, you would put the VCS trigger in your new project, the snapshot dependency as you have it, and that will automatically pull the build chain into the build queue.
Manually running a build is designed to run the default branch.
You haven't shared the artifact configuration, but usually it's recommended to configure it to use the artifact "from the same chain", which means that it should use those that were generated with the previous build.
If some of this isn't working properly, please share the artifact dependency configuration as well.
Thanks for the reply and the fix!
Moving the VCS trigger to the dependency solved it, just to double double check, my trigger now looks like this:
And my artifact dependency configuration looks like so: