如何使用YAML从Artifactory还原软件包 [英] How to restore packages from Artifactory using YAML

查看:84
本文介绍了如何使用YAML从Artifactory还原软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

指南

The guide here gives the example code below:

- task: DotNetCoreCLI@2
  inputs:
    command: restore
    projects: '**/*.csproj'
    feedsToUse: config
    nugetConfigPath: NuGet.config    # Relative to root of the repository
    externalFeedCredentials: <Name of the NuGet service connection>

但是我很难知道需要什么来代替< NuGet服务连接的名称> ,甚至是 NuGet.config .

but I'm struggling to know what is required in place of <Name of the NuGet service connection> or even NuGet.config.

关于人工不使用YAML甚至没有提及它,所以我不知道它是否有可能.

The Guide on Artifactory doesn't use YAML or even mention it so I don't know if it is even possible.

我的问题:以上可能吗?如果可以,上面的脚本中应该包含什么内容?

My question: Is the above possible, and if so, what should I have in the script above?

推荐答案

< NuGet服务连接的名称> 就是上面所说的.去创建一个服务连接在您的项目中指向NuGet提要,然后在其中通过名称进行引用.

<Name of the NuGet service connection> is exactly what it says. Go create a service connection in your project that points to the NuGet feed, then reference it by name there.

这篇关于如何使用YAML从Artifactory还原软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆