Folder is not a valid source?

Automated deployment for web applications and databases

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

Folder is not a valid source?

Postby lee5i3 » Tue Oct 15, 2013 7:06 pm

I am using a SQL Database project, and I've been using the following command in TeamCity to package up the project


"%env.ProgramFiles%\\Red Gate\\Deployment Manager\\Tools\\RgPublish.exe" /source="%system.teamcity.build.workingDir%\\trunk\\source\\My.Database" /target=feed:http://localhost:7070/nuget /packageid=My.Database /Configuration=Release

This has worked in the past, but haven't actually deployed in a while.. and now TeamCity is complaining..

[14:02:23][Step 3/6] Invalid source argument:
[14:02:23][Step 3/6] Could not interpret 'C:\\TeamCity\\buildAgent\\work\\92cb0b109899efe9\\trunk\\source\\My.Database' as a valid source.
[14:02:23][Step 3/6] Process exited with code 1
[14:02:23][Step 3/6] Step Deploy My.Database (Command Line) failed
lee5i3
 
Posts: 38
Joined: Fri Jul 16, 2010 9:26 pm

Postby james.billings » Tue Oct 15, 2013 7:42 pm

Hi Lee

Which version of RGPublish are you using? Can you try appending /verbose to the command to see if it logs more information?
Out of curiosity I tried packaging a folder with a period in the name using RGPublish and it was fine - although /Configuration isn't a switch I recognise, and my version certainly complained about it being there.
james.billings
 
Posts: 1146
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby lee5i3 » Tue Oct 15, 2013 9:49 pm

Red Gate Package Publishing Tool version 2.2.18.1

I'm not too sure why I put in Configuration, will remove it for now..

I added /verbose but didn't give anymore information
lee5i3
 
Posts: 38
Joined: Fri Jul 16, 2010 9:26 pm

Postby lee5i3 » Tue Oct 15, 2013 9:53 pm

I also ran it manually on the server, I got the same error...
lee5i3
 
Posts: 38
Joined: Fri Jul 16, 2010 9:26 pm

Postby lee5i3 » Tue Oct 15, 2013 9:55 pm

AHH, I figured it out... LOL

I renamed the project folder a while ago but didn't update my script, the "not a valid source", actually means the folder does not exist
lee5i3
 
Posts: 38
Joined: Fri Jul 16, 2010 9:26 pm

Postby james.billings » Wed Oct 16, 2013 11:40 am

Ah, yes- that would be it :)
james.billings
 
Posts: 1146
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests