Our TeamCity project has components for triggered build and unit tests on commits, nightly functional tests, and manual deployment. Currently, the deployment job can be run even when the functional tests have failed. To prevent this, I'd like to enable a pre-condition whereby a deployment can't be run or will fail if the nightly functional tests have failed.
I'm not sure if this should be done with a build step or a dependency. There aren't actual snapshot or artifact dependencies involved, just a job status.