简体   繁体   中英

artifactory jenkins plugin with first class nuget support like maven packages

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM