VSTS build failed with Git fetch failed with exit code: 128

半城伤御伤魂 提交于 2020-01-03 12:35:13

问题


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:

  • 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 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!


回答1:


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.



来源:https://stackoverflow.com/questions/45686349/vsts-build-failed-with-git-fetch-failed-with-exit-code-128

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!