1
votes

Looking here I have methods for maven but i cant find nuget: https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins

How do I use the jenkins plugin to upload packages with Nuget Info attached to them?

2

2 Answers

2
votes

It sure looks like Nuget is not supported within the plugin (plugin source on github). Nuget CLI reference is probably the next stop and then you'll want to figure out how to update the buildInfo with the package so the two objects can be linked together for management and cleanup. I don't know how to do that step yet but the REST interface. Also, theres a MSBUILD Artifactory plugin that might make this easier.

Publish would look something like this:

nuget push package -Source artifactoryRepoURL -ApiKey ArtifactoryAPIKey

On the Home artifactory page, there's a Set Me Up link for each repo that goes over the details.

1
votes

The answer is you must use the jfrog cli or the upload() method of the plugin to add build info and do retention. You cannot upload with regular nuget methods.