How do I make a scheduled trigger dependent on another build's success?
I've got my build broken up as follows:
Build SMARTWeb - VCS Trigger
Test SMARTWeb - Dependencies Trigger (Triggered by Build SMARTWeb)
Deploy SMARTWeb - Scheduled Trigger (Every night at 5:30pm)
...with each one being a distinct build configuration. I'm making this up as I go along, but my thinking was that I could get the Test and Deploy configurations to only trigger if the Build step finished successfully.
Yesterday, I checked something into the build that broke it, which I expected. I went home (like all the guys that break the build), and at 5:30pm it Deployed that broken build to production. I naively thought that somehow the scheduled trigger wouldn't run since the Build SMARTWeb build had failed. I see now that that was my mistake. So, what am I missing to have the Deploy configuration be a scheduled build that is dependant on the Build SMARTWeb configuration building successfully?
Oh - I don't want to put my deploy script into the building of the SMARTWeb configuration because we check into the VCS in the middle of the day and I don't want it getting published to production in the middle of the day. Only at night.
-Nick
Please sign in to leave a comment.
Kind regards,
Marina