I have a build pipeline configured to works as follows: Unit tests - > Metrics -> Deployment. The unit test is a polled job that then triggers my metrics and finally the deployment. So that I dont keep wiping the CI environment I have the deployment occur nightly... this introduced a problem. The scheduling for the deployment takes presedence over whether the upstream was succesful or not. Am I missing a configuration that says ONLY run the scheduled task if the upstream was succesful?
Any help is most appreciated.