jenkins - 如何使用 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
...
我检查了以下项目
- 服务器 URL:在浏览器中工作以访问 repo
- 登录名/用户密码:在浏览器中访问 repo
詹金斯版本:2.176
TFS 插件版本:5.142.0
TFS 插件适用于我的本地 TFS 服务器。
需要进行哪些更改才能建立这种连接?
解决方案
推荐阅读
- java - 无法使用 JavaCompiler 编译像 @Entity 这样的注解
- php - 使用 json_encode 对 2 个表进行编码
- magento2 - 语言切换器将 Magento 2.3.1 中新创建的页面重定向到主页
- java - 有没有办法禁用 SCPSolver 的输出?
- regex - RegEx 用于匹配某些字符之间的字符串?
- unity3d - 如何通过 Unity 3D 中的着色器用纹理替换颜色
- datetime - 将模型从 Angular 6 提交到 Web API 后,日期变为晚一 (1) 天
- ios - Swift & Firebase - 使用动态密钥更新数据库
- c# - 带有排除过滤器的通用 linq 查询
- java - 如何将相同的缓冲图像再次加载到我的面板上,而不必再次创建相同的缓冲图像?