英文:
Github release task fails with internal error
问题
尝试使用此DevOps任务发布到GitHub:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks/GitHubReleaseV1
运行失败,显示以下错误:
2023-07-12T09:47:10.4783230Z ##[error]在获取初始提交时发生意外错误。
我的情景:
我在Azure DevOps中有一个仓库,我在其中运行一个流水线以创建一些二进制文件。我在GitHub上有一个私有仓库,我想将这些二进制文件推送到其中。
是否因为它是私有仓库而导致失败?
英文:
Trying to release to github using this devops task:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks/GitHubReleaseV1
The run fails with:
2023-07-12T09:47:10.4783230Z ##[error]An unexpected error occurred while fetching the initial commit.
My scenario:
I have a repo in azure devops on which i run a pipeline to create some binaries. I have a private repo in Github i want to push the binaries to.
Is it failing because its a private repo?
答案1
得分: 0
经过将 system.debug 变量设置为 'true' 后运行,我发现了问题。
- 此存储库已使用来自私有 ADO 存储库的代码进行更新,而提交 ID 未同步,因此它正在寻找不存在的提交 ID。
- 存储库被意外存档 - 因此无法访问 GitHub API。
现在它正在工作
英文:
After running with system.debug variable setting to 'true' I found the issue.
- This repo is updated with code from a private ADO repo and the Commit Id's are not synced, hence it looked for a non-existing commit id
- The repo was archived accidently - so github API was not reachable
Its working now
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论