Red Gate forums :: View topic - Deployment Agent does not clean up temp folder
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Deployment Agent does not clean up temp folder

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
OrangeBean



Joined: 20 Sep 2013
Posts: 3

PostPosted: Thu Jan 30, 2014 11:40 pm    Post subject: Deployment Agent does not clean up temp folder Reply with quote

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?
Back to top
View user's profile Send private message
OrangeBean



Joined: 20 Sep 2013
Posts: 3

PostPosted: Mon Feb 03, 2014 12:35 am    Post subject: Reply with quote

Answering my own question. Smile

PPL please read the doco first Embarassed

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group