首页 > 解决方案 > 如何使用 TFS 插件从 Jenkins 连接到 Azure Repos TFVC 存储库?

问题描述

我正在尝试将我的 Jenkins 作业连接到新的 Azure Repos TFVC 存储库。当我尝试连接到我的 Azure Devops 组织 (macfarmw) 的根 URL 时,Jenkins 失败并返回以下错误:

Building on master in workspace J:\Builds\Jenkins\TestAzureDevopsRepos
Deleting workspace as the configuration has changed since a build was performed on this computer.
FATAL: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server https://macfarmw.visualstudio.com/ (authenticating as matthew_macfarland@dril-quip.com)
...

如果我使用指向特定项目的 Azure 存储库的 URL 进行尝试,我会得到以下信息:

Building on master in workspace J:\Builds\Jenkins\TestAzureDevopsRepos
FATAL: com.microsoft.tfs.core.exceptions.TECoreException: The SOAP endpoint https://macfarmw.visualstudio.com/Project01/Services/v1.0/Registration.asmx could not be contacted.  HTTP status: 404
com.microsoft.tfs.core.ws.runtime.exceptions.EndpointNotFoundException: The SOAP endpoint https://macfarmw.visualstudio.com/Project01/Services/v1.0/Registration.asmx could not be contacted.  HTTP status: 404
...

我检查了以下项目

詹金斯版本:2.176

TFS 插件版本:5.142.0

TFS 插件适用于我的本地 TFS 服务器。

需要进行哪些更改才能建立这种连接?

标签: jenkinstfs

解决方案


推荐阅读