VSTS构建因Git提取失败而失败,退出代码为:128

编程入门 行业动态 更新时间:2024-10-19 18:23:01
本文介绍了VSTS构建因Git提取失败而失败,退出代码为:128的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在VSTS上设置了一个构建代理和构建过程.所有配置都可以,但是在获取源代码步骤时构建失败.这是我尝试过的:

I setup a build agent and build process on VSTS. All configuration is ok but build is failed at getting source step. Here is what I have tried:

  • 检查权限:由于我的个人资料是该项目的所有者,所以我愿意 没有在角色中指定权限
  • 我试图将PAT的范围更改为ALL 范围,但我没有运气.
  • 升级到最新版本2.14.1.windows.1.但是我知道为什么它仍然显示2.12.0.windows.1.

  • Check permission: Since my profile is owner of this project so I do not specify permission in Roles
  • I tried to change PAT's scope to ALL scope but I have no luck.
  • Upgrade to latest version 2.14.1.windows.1. But I know why it still shows 2.12.0.windows.1.

2017-08-15T03:51:34.4449577Z ##[command]git version 2017-08-15T03:51:34.5159426Z git version 2.12.0.windows.1 2017-08-15T03:51:34.5239707Z ##[command]git init "C:\agent\_work\1\s" 2017-08-15T03:51:34.5889586Z Initialized empty Git repository in C:/agent/_work/1/s/.git/ 2017-08-15T03:51:34.5929735Z ##[command]git remote add origin ezcm.visualstudio/_git/NSample 2017-08-15T03:51:34.6430065Z ##[command]git config gc.auto 0 2017-08-15T03:51:34.6915534Z ##[command]git config --get-all http.ezcm.visualstudio/_git/NSample.extraheader 2017-08-15T03:51:34.7356779Z ##[command]git config --get-all http.proxy 2017-08-15T03:51:34.7846598Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer ********" fetch --tags --prune

-progress --no-recurse-submodules的来源 2017-08-15T03:51:34.8901839Z ## [错误] Git提取失败,退出代码:128 2017-08-15T03:51:34.8981753Z ## [section]完成:获取资源

--progress --no-recurse-submodules origin 2017-08-15T03:51:34.8901839Z ##[error]Git fetch failed with exit code: 128 2017-08-15T03:51:34.8981753Z ##[section]Finishing: Get Sources

请帮助我找出问题所在.谢谢!

Please help me to figured out the issue. Thank you!

推荐答案

我有一个Enterprise GitHub存储库.当我将存储库设置为私有"时,即使用户是该存储库的管理员,我也开始收到此错误,我将继续获得退出代码128.

I have a Enterprise GitHub repository. I started getting this error when I made the repository 'Private' even if the user was Admin on the repository I would continue to get exit code 128.

我将其改回了可以正常工作的公共存储库.

I changed it back to be public repository it worked fine.

更多推荐

VSTS构建因Git提取失败而失败,退出代码为:128

本文发布于:2023-11-12 12:15:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581476.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   VSTS   Git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!