Here is our scenario, which I would expect to be very typical - three build configurations: Build, Test, Deploy. Only Build produces artifacts. Test obviously depends on Build. Deploy depends on both Build and Test.
Now we don't want to deploy every successful build. Instead we have scheduled trigger to start Deploy at particular time of the day. Deploy supposed to pick up binaries (atrifacts) from the latest available successful Build which also passed Test step.
What we get now - when scheduled trigger fires off the whole chain starts from the beginning: Build -> Test -> Deploy. This is not what we need, as Build + Test may take hours. We want to deploy at configured time using the latest available successfully tested binaries. How do we make that happen? Looks so simple, yet I cannot figure it out on my own. Please help!