You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure DevOps创建Jenkins服务挂钩时遇TF400898内部错误求助

解决Azure DevOps创建Jenkins服务挂钩时的TF400898内部错误

错误详情

在Azure DevOps中创建Jenkins服务挂钩时,触发以下内部错误:

TF400898: An Internal Error Occurred. Activity Id: f75c09f1-a86e-4f14-a221-7cf17e9ab4cb.

对应的网络响应JSON:

{
    "$id": "1",
    "innerException": null,
    "message": "TF400898: An Internal Error Occurred. Activity Id: f75c09f1-a86e-4f14-a221-7cf17e9ab4cb.",
    "typeName": "Microsoft.VisualStudio.Services.Common.VssServiceException, Microsoft.VisualStudio.Services.Common",
    "typeKey": "VssServiceException",
    "errorCode": 0,
    "eventId": 3000
}

已尝试更换不同Jenkins实例,问题仍存在。

可行解决方案

1. 验证Azure DevOps账号权限

  • 确认操作账号拥有项目管理员或服务挂钩管理员权限,普通成员权限可能无法完成创建操作。
  • 权限检查路径:项目设置 → 权限 → 找到对应账号,确保“服务挂钩”权限设置为“允许”。

2. 清除浏览器缓存与站点数据

  • 清空当前浏览器的缓存、Cookie,尤其是Azure DevOps相关的站点数据,重新登录后尝试创建。
  • 也可使用隐身/无痕窗口操作,排除本地缓存干扰。

3. 检查Jenkins基础配置有效性

  • 确认Jenkins实例URL可被Azure DevOps访问(公网或内网连通),直接访问URL验证是否正常响应。
  • 重新生成Jenkins API令牌:在Jenkins个人设置中创建新的API令牌,替换服务挂钩配置里的旧令牌。
  • 确认Jenkins版本与Azure DevOps服务挂钩插件兼容,避免版本不匹配引发的内部错误。

4. 使用Azure DevOps CLI创建服务挂钩

跳过网页UI,通过命令行工具直接创建,规避前端可能的异常:

  1. 安装并登录Azure DevOps CLI:
    az login
    az devops login
    
  2. 执行创建命令(替换占位符为实际信息):
    az devops service-hook create --event-type "git.push" --service-endpoint-id "<你的Jenkins服务端点ID>" --project "<项目名称>" --consumer-action-id "jenkins.job.run" --consumer-inputs "jobName=<Jenkins任务名称>,jenkinsUrl=<Jenkins URL>,username=<Jenkins用户名>,password=<Jenkins API令牌>"
    

5. 提交Azure DevOps支持工单

若以上方法均无效,携带Activity ID(f75c09f1-a86e-4f14-a221-7cf17e9ab4cb)提交官方支持工单,让微软团队排查后台服务异常。

内容的提问来源于stack exchange,提问作者Mahendra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 16:28:18