简体   繁体   English

如何使用Artifactory NuGet Restore任务在TFS中收集构建信息?

[英]How to collect build info in TFS using the Artifactory NuGet Restore task?

I'm able to restore packages without collecting build info perfectly fine. 我能够还原软件包,而不会完全收集构建信息。 However, when I tick the 'collect build info' box, I run into the following error: 但是,当我在“收集构建信息”框中打钩时,遇到以下错误:

[Error] Could not find nupkg file name for: ../[ProjectName]/[ProjectName].csp [错误]找不到以下文件的nupkg文件名:../ [ProjectName] / [ProjectName] .csp

Would there be some sort of guide for this? 为此会有某种指导吗?

This is regarding JFrog Artifactory integration with TFS. 这是关于JFrog Artifactory与TFS的集成。

This issue occurred since in the project.assets.json you had a reference to type project . 发生此问题的原因是,在project.assets.json中,您具有对project类型的引用。 We have released a new version of JFrog CLI (1.21.1) that skip dependencies of type project. 我们发布了新版本的JFrog CLI(1.21.1),该版本跳过了类型项目的依赖关系。 When using JFrog CLI with the build-name and build-number parameters to create the build info, JFrog CLI tries to scan your project for it's dependencies. 当使用带有build-name和build-number参数的JFrog CLI创建构建信息时,JFrog CLI尝试扫描项目中的依赖项。 When the dependency is written as type project in the project.assets.json , JFrog CLI cannot gather information regarding that dependency (such as sha1, md5 and dependency nupkg file). 当依赖项在project.assets.json中写为type project时,JFrog CLI无法收集有关该依赖项的信息(例如sha1,md5和依赖项nupkg文件)。 With the latest release, JFrog CLI does not fail but skips collecting information regarding that dependency. 在最新版本中,JFrog CLI不会失败,但是会跳过有关该依赖项的信息收集。

TFS is using behind the scene JFrog CLI. TFS在后台使用JFrog CLI。 With the upcoming release of TFS plugin, the latest version of the CLI will be included. 在即将发布的TFS插件版本中,将包括最新版本的CLI。 You can, however, update your agent with the latest JFrog CLI version that fixes this issue. 但是,您可以使用可解决此问题的最新JFrog CLI版本更新代理。 You can find more information of how to use your own version of JFrog CLI in our wiki page here 你可以找到如何在我们的wiki页面使用自己的JFrog CLI版本的详细信息在这里

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

相关问题 在NuGet恢复时TFS构建失败 - TFS Build fails at NuGet restore tfs 2015内部版本未执行nuget包还原 - tfs 2015 build not performing nuget package restore CICD TFS 2013 - Nuget 在 TFS Serer 版本上自动恢复 - CICD TFS 2013 - Nuget auto restore on TFS Serer build 在Visual Studio Build步骤中使用NuGet Installer任务和“Restore Nuget Packages”有什么区别? - What's the difference using NuGet Installer task and “Restore Nuget Packages” in Visual Studio Build step? 如何获取TFS2015 Build(Build.vnext)和NuGet包还原以使用自定义包源 - How to get TFS2015 Build (Build.vnext) and NuGet package restore to use custom package sources TFS2017.2 NuGet恢复任务 - ETIMEDOUT 93.184.221.200:443 - TFS2017.2 NuGet restore task - ETIMEDOUT 93.184.221.200:443 Tfs vNext,Restore Nuget包构建步骤,如何配置多个源? - Tfs vNext, Restore Nuget packages build step, how to configure multiple sources? 如何在TFS 2013 Build Server上还原PCL引用的nuget包(带有project.json) - How to restore nuget packages referenced by PCL (with project.json) on TFS 2013 Build Server TFS在线构建失败 - NuGet包还原无法正常工作 - TFS Online Build Fails - NuGet package Restore Not working TFS 无法恢复 nuget 包(开发 PC 构建正常) - TFS unable to restore nuget packages (dev PCs build ok)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM