Skipping deploy based on PreDeploy.ps1

Automated deployment for web applications and databases

Skipping deploy based on PreDeploy.ps1

Postby ATimson » Wed Jun 04, 2014 1:42 pm

Is there a way to utilize PreDeploy.ps1 to skip deployment, if we detect that it's not needed? Or would we need an entirely custom Deploy.ps1 to do that?

(The idea is that if our Windows service is being updated, we'd like to stop the service, deploy the new version, then restart the service. But if there's no change, we don't want to needlessly stop/restart the service.)
Posts: 11
Joined: Thu May 01, 2014 2:48 am

Postby robin » Wed Jun 04, 2014 1:51 pm


I don't think this is possible. If your script throws an exception, or exits with a non-zero exit code, then the deployment will stop, but it will be considered to have failed. There is no way to stop the deployment and still report success.

Robin Hellen
Test Engineer
Deployment Manager
Posts: 20
Joined: Fri Nov 16, 2007 11:02 am

Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests