Deployment Agent does not clean up temp folder

Automated deployment for web applications and databases

Moderators: Mike Upton, justin.caldicott, Sean.newham, csmith, chirayu, DavidSimner, david.conlin

Deployment Agent does not clean up temp folder

Postby OrangeBean » Thu Jan 30, 2014 11:40 pm

Hi,

We are using DeploymentManager on a set of servers for different deployments.

In one of the cases the problem of not cleaning up Temp folder by DeploymentAgent becomes a showstopper.

A little bit of details. There is a database server. Server hosts 2 databases that are subject for deployment. One database is redeployed using nupack generated by RedGate SQL Server plugin for TeamCity. Another database is updated by 2 custom made nupacks. All 3 packages belong to 3 different Projects. All projects have different set of variables defined. RedGate nupack contains PreDeploy.ps1. 2 custom nupacks contain Deploy.ps1. Because the Temp folder is not cleaned up by the Agent there are always mix of the packages there and they fail as DeploymentManager tries to run PreDeploy.ps1 then Deploy.ps1 which in fact belong to 2 different packages and expect different variables.

Any advice on how to clean Temp folder before or after deployment?
OrangeBean
 
Posts: 5
Joined: Fri Sep 20, 2013 6:30 am

Postby OrangeBean » Mon Feb 03, 2014 12:35 am

Answering my own question. :)

PPL please read the doco first :oops:

there is answer to my question right here:http://documentation.red-gate.com/display/DM2/Variables

To stop polluting system temp folder (and control free disk space) on the agent machine someone can define variable RedGatePackageDirectoryPath to point to some custom temp location. That is what we did and faced the problem described in original post.
To address clean up issue in custom temp there is another variable: RedGatePurgePackageDirectoryBeforeCopy. Set it to True and agent will clean the folder before copying files into it.
OrangeBean
 
Posts: 5
Joined: Fri Sep 20, 2013 6:30 am


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests