NuGet Push that uses Repository Layout?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

NuGet Push that uses Repository Layout?

drohm
Hi,
I'm trying to do this:

  nuget push mypackage.nupkg -Source http://myartifactoryserver/artifactory/api/nuget/my-nuget-repo -ApiKey mykey

and I'm able to successfully push the package up to Artifactory, but its placing it in the root of the repository and not honoring the repository layout.  I tried adding the path to the -Source parameter:

  -Source http://myartifactoryserver/artifactory/api/nuget/my-nuget-repo/MyDir/1.0.0.0/

but that fails with:

Failed to process request. 'Method Not Allowed'.
The remote server returned an error: (405) Method Not Allowed..

In the admin interface of Artifactory, I applied a repository layout.  How do I get artifactory to use this layout when publishing with NuGet?  Is it possible?

Doug
Reply | Threaded
Open this post in threaded view
|

Re: NuGet Push that uses Repository Layout?

drohm
Anyone know?
Reply | Threaded
Open this post in threaded view
|

Re: NuGet Push that uses Repository Layout?

Aitor Perez Cedres
Hi drohm,

I dont know how to work with NuGet, never used it before, but hope those
links can help you:

http://forums.jfrog.org/Deploying-a-NuGet-dep-from-Maven-td7333637.html
http://wiki.jfrog.org/confluence/display/RTF/NuGet+Repositories

On 04/06/13 16:42, drohm wrote:

> Anyone know?
>
>
>
> --
> View this message in context: http://forums.jfrog.org/NuGet-Push-that-uses-Repository-Layout-tp7578838p7578847.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> Artifactory-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: NuGet Push that uses Repository Layout?

drohm
Yea, I've already read over those links and they're no help.  Still trying to figure out a way to have my nuget packages use the layout of the repository.  As it stands now, they're all being dumped in the main root folder of the repository.
Reply | Threaded
Open this post in threaded view
|

Re: NuGet Push that uses Repository Layout?

pscheir
Hi,

I've used the same URL for publishing as I use for deploying with curl:

nuget push COMPONENT.1.40.338.21.nupkg u11k52:Start123 -Source http://server:8081/artifactory/TestRepository/XXX/ COMPONENT/1.40.338.21/ -Verbosity detailed

nuget returns that the push was successful, however the nupkg is not in Artifactory.

Regards, Peter
Reply | Threaded
Open this post in threaded view
|

Re: NuGet Push that uses Repository Layout?

shayy
We have implemented the option to push into a relative path in Artifactory 3.0.3 (see RTFACT-5912).
Also, the docs have been updated as well with examples of custom NuGet layout for further features (like deleting versions from a repository).

Regards,
Shay.


On Thu, Sep 12, 2013 at 3:02 PM, pscheir <[hidden email]> wrote:
Hi,

I've used the same URL for publishing as I use for deploying with curl:

nuget push COMPONENT.1.40.338.21.nupkg u11k52:Start123 -Source
http://server:8081/artifactory/TestRepository/XXX/ COMPONENT/1.40.338.21/
-Verbosity detailed

nuget returns that the push was successful, however the nupkg is not in
Artifactory.

Regards, Peter




--
View this message in context: http://forums.jfrog.org/NuGet-Push-that-uses-Repository-Layout-tp7578838p7579104.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: NuGet Push that uses Repository Layout?

pscheir
Nice. It works for me with: Nuget.exe push some_package.1.2.3.4.nupkg –source http://artifactory/api/nuget/repoKey/path/to/folder -ApiKey user:password (taken from RTFACT-5912) Even with a repository with maven2 layout. Thank! Peter