Github发布任务失败,出现内部错误。

huangapple go评论78阅读模式
英文:

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' 后运行,我发现了问题。

  1. 此存储库已使用来自私有 ADO 存储库的代码进行更新,而提交 ID 未同步,因此它正在寻找不存在的提交 ID。
  2. 存储库被意外存档 - 因此无法访问 GitHub API。

现在它正在工作 Github发布任务失败,出现内部错误。

英文:

After running with system.debug variable setting to 'true' I found the issue.

  1. 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
  2. The repo was archived accidently - so github API was not reachable

Its working now Github发布任务失败,出现内部错误。

huangapple
  • 本文由 发表于 2023年7月13日 19:28:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76678866.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定