Can I force a failure when nothing is deployed?
isme
Posts: 119
Green means the deployment was successful, right?
When TeamCity invokes the deployment, not necessarily.
Deployment Manager allows TeamCity to deploy to an environment with no configured targets, and reports success after deploying nothing.
The deployment summary shows that DM thinks it installed two packages.
But the log shows that DM just skipped the installation entirely!
The dashboard says that "this task completed without a problem".
If there are no targets to accept my deployment, I'd say that's a problem!
Can I make the deployment fail when this happens?
When TeamCity invokes the deployment, not necessarily.
Deployment Manager allows TeamCity to deploy to an environment with no configured targets, and reports success after deploying nothing.
The deployment summary shows that DM thinks it installed two packages.
But the log shows that DM just skipped the installation entirely!
2013-12-12 16:28:29 +00:00 INFO The deployment step 'Rhubarb.Rhubarb.Rhubarb version 1.0.8603.199' has not been configured to deploy to any targets in the environment 'INT-REVIEW'. This step will be skipped.
The dashboard says that "this task completed without a problem".
If there are no targets to accept my deployment, I'd say that's a problem!
Can I make the deployment fail when this happens?
Iain Elder, Skyscanner
Comments
I appreciate the confusion here- technically, a deployment succeeds if there's an absence of an error code returned, so if nothing attempted to deploy, then no errors are likely to be encountered and thus we treat that as 'success'- however I can see that it may be desirable for it to behave in the way you describe.
I can't think of any obvious way currently to get it to do this, so could you add it as a feature request over on our Uservoice site: clicky - we can then see if it's a popular suggestion.
Redgate Software
Vote here if you'd like to make DM fail in this situation:
http://redgate.uservoice.com/forums/176 ... nt-targets