How to authorize RgPublish.exe into NuGet feed?

Automated deployment for web applications and databases

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

How to authorize RgPublish.exe into NuGet feed?

Postby abatishchev » Tue Jun 25, 2013 12:52 am

Is there a way to specify credentials or use NTLM authorization on NuGet feed publish?

Currently TeamCity redirects to the login page because publish request is not authorized:
[03:31:43][Step 7/7] Publishing package to feed at http://localhost/guestAuth/app/nuget/v1 ... vice.svc...
[03:31:50][Step 7/7] Failed to push to package feed at http://localhost/login.html/. The package feed was not found.

Enabling guest access specially for this purpose is not acceptable.
abatishchev
 
Posts: 5
Joined: Mon Jun 24, 2013 11:52 pm
Location: Redmond, WA

Postby james.billings » Tue Jun 25, 2013 6:30 pm

Indeed, there doesn't seem to be any option to add authentication right now. Could you please suggest this on the Uservoice site for deployment manager (you'll find that here) so we can gauge how useful people would find it?
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby abatishchev » Tue Jun 25, 2013 6:38 pm

Sure, I've created one.
abatishchev
 
Posts: 5
Joined: Mon Jun 24, 2013 11:52 pm
Location: Redmond, WA

Postby james.billings » Tue Jun 25, 2013 6:49 pm

That's great, thanks!
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby Mike Upton » Wed Jun 26, 2013 4:50 pm

I'm afraid the TeamCity NuGet feed doesn't actually support pushing, so even if we did add support for authentication the push operation would still fail.

The only way to publish to the TeamCity NuGet feed is to add the packages as artefacts of a TeamCity build configuration. For more information, please see http://stackoverflow.com/questions/10423272/how-can-packages-be-published-to-a-teamcity-nuget-server, and the JetBrains support request for supporting push operations.
Mike Upton

Software Engineer
Red Gate Software Ltd.
Mike Upton
 
Posts: 157
Joined: Wed May 11, 2011 8:04 am
Location: Red Gate


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests

cron