Red Gate forums :: View topic - RgPublish.exe /target doesn't create specified 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

RgPublish.exe /target doesn't create specified folder

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



Joined: 24 Jun 2013
Posts: 5
Location: Redmond, WA

PostPosted: Tue Jun 25, 2013 12:48 am    Post subject: RgPublish.exe /target doesn't create specified folder Reply with quote

Using RgPublish /target makes no sense in dynamic environment (where folder name is being generated and created dynamically, say by TeamCity). There is no way to pre-create such folder so it must create it by itself.

Currently it throws an error instead:
Quote:
[03:36:50][Step 7/7] Target folder 'C:\TeamCity\buildAgent\work\403d3ec57312a972\redgate' does not exist.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Tue Jun 25, 2013 6:27 pm    Post subject: Reply with quote

At the moment, the target folder is taken exactly as specified, and that's where the resulting .nupkg ends up.
Could you clarify a little more your use-case regarding integration with Team City?
I assume that if team city has created an output folder, this may be accessible through some sort of variable you could pass through to RGPublish?
Back to top
View user's profile Send private message
abatishchev



Joined: 24 Jun 2013
Posts: 5
Location: Redmond, WA

PostPosted: Tue Jun 25, 2013 6:34 pm    Post subject: Reply with quote

TeamCity creates %system.teamcity.build.workingDir% that I can use. But this is a root of the whole checkout and build process.
If I want use more specific subfolder that doesn't exist in source, I can't, because DM won't create it.

If would fix that in an obvious way:
Code:
if (!Directory.Exists(TargetFolder))
     Directory.Create(TargetFolder));
Back to top
View user's profile Send private message
Mike Upton



Joined: 11 May 2011
Posts: 154
Location: Red Gate

PostPosted: Wed Jun 26, 2013 5:36 pm    Post subject: Reply with quote

You're quite right. I'm fixing that now; the fix will be available in the next release.

Hope that helps,
Mike
_________________
Mike Upton

Software Engineer
Red Gate Software Ltd.
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