Snapshot dependencies - LAST successful build

I have a build configuration that builds sources and outputs binaries to a single binary location.

I then have a seperate configuration that produces an installer with the binaries from the above step.

I have a snapshot dependency from the installer to the build.

I have ticked 'Do not run new build if there is a suitable one' and 'Only use successful builds from suitable ones' but dont't quite get the result I require.

What I really need is a 'Use last build if suitable and successful'.


I know I should really be using artifacts to package up the binary folder and then use these when producing the installer but that takes too long.  The whole reason for seperating these steps is that I what quick feedback on a build but the artifact packaing take around 5 minutes.

So I just want to use the binaries from where they are output.  If a build has failed or even run partially then the binaries is this folder may be incorrect but ticking 'Do not run new build if there is a suitable one' and 'Only use successful builds from suitable ones' won't result in kicking off a new build but actaully grabbing these binaries.  In most cases the build is successful though and no further builds have run I can safely pickup the binaries.  Of course the sources also match.  

Thoughts?  Should it be an option?  What do you do to get around the artifact creation time?

2 comments
Comment actions Permalink

I've managed to put some checks into the build process to ensure if the most recent build does not match the chosen build I exit with an error, what would be ideal though is if a build was triggered.


Any thoughts on this proposal?  I will create it as a feature request when I get a chance.

0
Comment actions Permalink

Related feature request is TW-23476

0

Please sign in to leave a comment.