简体   繁体   English

具有一流 nuget 支持的 artifactory jenkins 插件,如 maven 包

[英]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看这里我有 maven 的方法,但我找不到 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?如何使用 jenkins 插件上传附有 Nuget 信息的包?

It sure looks like Nuget is not supported within the plugin ( plugin source on github ).看起来插件中不支持 Nuget( 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. Nuget CLI 参考可能是下一站,然后您会想知道如何使用包更新 buildInfo,以便可以将两个对象链接在一起进行管理和清理。 I don't know how to do that step yet but the REST interface.我不知道如何做那一步,但 REST 接口。 Also, theres a MSBUILD Artifactory plugin that might make this easier.此外,还有一个MSBUILD Artifactory 插件可能会使这更容易。

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.在 Home artifactory 页面上,每个 repo 都有一个Set Me Up链接,可以查看详细信息。

The answer is you must use the jfrog cli or the upload() method of the plugin to add build info and do retention.答案是您必须使用插件的 jfrog cli 或 upload() 方法来添加构建信息并进行保留。 You cannot upload with regular nuget methods.您无法使用常规 nuget 方法上传。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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