Red Gate forums :: View topic - TeamCity Plugin
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

TeamCity Plugin

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



Joined: 07 Feb 2013
Posts: 3

PostPosted: Thu Feb 07, 2013 6:30 pm    Post subject: TeamCity Plugin Reply with quote

I am trying to get a CI solution working using TeamCity and Deployment Manager.
I have set up a Red Gate build job and it all works fine until I try and use the option to create upgrade scripts. The build then fails every time:
sqlCI error occurred: System.Net.WebException: The remote server returned an error: (401) Unauthorized.

The build log shows it is trying to get the last build package and it is at that point it fails.

I am using the Team City NuGet Server to do this.

I have noticed it always calls the authenticated service, even if I set the package in Deployment Manager to the public one.

Any clues as to where I am going wrong?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6640

PostPosted: Mon Feb 11, 2013 12:28 pm    Post subject: Reply with quote

Offhand I'd say that the deployment is set up to use the authentication TeamCity repository rather than the one that doesn't require authentication. You can see there are two different URLs in TeamCity... have you set up your repository in the settings to use the one that doesn't need authentication?
Back to top
View user's profile Send private message
Dom Rich



Joined: 07 Feb 2013
Posts: 3

PostPosted: Wed Feb 13, 2013 10:46 am    Post subject: Reply with quote

Thanks for your reply Brian. I deleted the project in Deployment Manager and recreated it and it started using the correct NuGet server. I've also changed Team City to use NTLM authentication which seems to be the final part of the solution.
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