进程 'C:\hostedtoolcache\windows\octo.4.1\x64\octo.cmd' > 失败,退出代码为 4294967289 无法部署发布进程

The process 'C:\hostedtoolcache\windows\octo\7.4.1\x64\octo.cmd' > failed with exit code 4294967289 Failed to deploy release The process

我正在尝试使用 Azure DevOps 部署 AspNet Core 3.1 API 构建,但出现以下错误。它按预期工作。我可以使用 Visual Studio 2019 运行 API,它按预期工作。

错误:

The process 'C:\hostedtoolcache\windows\octo.4.1\x64\octo.cmd' failed with exit code 4294967289 Failed to deploy release The process 'C:\hostedtoolcache\windows\octo.4.1\x64\octo.cmd' failed with exit code 4294967289

Create Octopus Release 构建步骤失败。

当我第一次启动构建时,它在章鱼中给我以下错误

章鱼日志:

2020-07-18T05:38:03.4661299Z Info IIS configuration complete
{Message:l} 2020-07-18T05:38:03.4661903Z One or more tasks did not complete before the timeout was reached. We waited 00:10:03 for the tasks to complete. 2020-07-18T05:38:03.4689131Z One or more tasks did not complete before the timeout was reached. We waited 00:10:03 for the tasks to complete. 2020-07-18T05:38:03.4691116Z This error is most likely occurring while executing octo as part of an automated build process. The following doc is recommended to get some tips on how to troubleshoot this: https://g.octopushq.com/OctoexeTroubleshooting 2020-07-18T05:38:03.4691849Z Exit code: -1 2020-07-18T05:38:03.4937068Z ##[error]Error: The process 'C:\hostedtoolcache\windows\octo.4.1\x64\octo.cmd' failed with exit code 4294967295 2020-07-18T05:38:03.4940746Z ##[error]Failed to deploy release The process 'C:\hostedtoolcache\windows\octo.4.1\x64\octo.cmd' failed with exit code 4294967295 2020-07-18T05:38:03.5051422Z ##[section]Finishing: Create Octopus Release: MyApi

然后我再次启动构建,它给出了以下错误

章鱼日志:

Creating release... There was a problem with your request.

  • Release '1.0.0.14' already exists for this project. Please use a different version, or look at using a mask to auto-increment the number.

Error from Octopus Server (HTTP 400 BadRequest) Exit code: -7 ##[error]Error: The process 'C:\hostedtoolcache\windows\octo.4.1\x64\octo.cmd' failed with exit code 4294967289 ##[error]Failed to deploy release The process 'C:\hostedtoolcache\windows\octo.4.1\x64\octo.cmd' failed with exit code 4294967289 Finishing: Create Octopus Release: MyApi

如何解决错误?我不知道 Azure DevOps 和 Octopus

我通过增加 Azure DevOps 管道中的构建版本解决了这个问题。