VSTS构建因Git提取失败而失败,退出代码为:128 [英] VSTS build failed with Git fetch failed with exit code: 128

查看:340
本文介绍了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 https://ezcm.visualstudio.com/_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.https://ezcm.visualstudio.com/_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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆