【问题标题】:Teamcity - How to set credentials for package sourceTeamcity - 如何为包源设置凭据
【发布时间】:2019-05-16 19:09:14
【问题描述】:

我正在使用 TeamCity 构建我的 .net 应用程序。构建步骤之一连接到 Nuget 包存储库并尝试恢复 nuget 包。在此步骤中,当系统尝试从特定存储库还原 nuget 包时,我看到 returned an unexpected status code '401 Unauthorized 错误。

如何设置凭据,以便 TeamCity 服务器在访问存储库时获取并传递它。

【问题讨论】:

    标签: teamcity teamcity-9.0 build-agent teamcity-9.1


    【解决方案1】:

    查看构建步骤表单字段的左侧,构建配置设置是构建功能

    然后

    点击左侧的构建功能

    点击添加构建功能按钮。

    选择NuGet Feed Credentials

    对于 Feed URI,输入 URL、uid 和 pwd

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-10-15
      • 2017-04-13
      • 1970-01-01
      • 2014-04-17
      • 2011-04-01
      • 2015-03-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多