Azure 工具退出时显示消息“退出”;退出时返回代码为:-1“;
我已经运行了该工具,它的执行方式与它的运行方式完全相同。在迁移结束时,我收到下面的消息“退出,返回代码:0” 通常情况下,我不会费心的。但是,我正在使用Azure DevOps发布管道实现迁移。 有了此消息,部署阶段总是失败 有人知道这个错误吗Azure 工具退出时显示消息“退出”;退出时返回代码为:-1“;,azure,service,devops,Azure,Service,Devops,我已经运行了该工具,它的执行方式与它的运行方式完全相同。在迁移结束时,我收到下面的消息“退出,返回代码:0” 通常情况下,我不会费心的。但是,我正在使用Azure DevOps发布管道实现迁移。 有了此消息,部署阶段总是失败 有人知道这个错误吗 The last few lines of execution Migration Processor Complete TfsTeamSettingsProcessor 2021-04-23T07:12:23.4698310Z [07:12:23 IN
The last few lines of execution
Migration Processor Complete TfsTeamSettingsProcessor
2021-04-23T07:12:23.4698310Z [07:12:23 INF] TfsTeamSettingsProcessor completed in 00:00:02.9601088
2021-04-23T07:12:23.4746613Z [07:12:23 INF] Application is shutting down...
2021-04-23T07:12:23.4787008Z [07:12:23 DBG] Hosting stopping
2021-04-23T07:12:23.4792590Z [07:12:23 DBG] Exiting with return code: 0
2021-04-23T07:12:23.4797995Z [07:12:23 INF] Terminating: Application forcebly closed.
2021-04-23T07:12:23.4802683Z [07:12:23 INF] Application Ending
看起来机器人副本退出代码0-7表示成功。我将命令行执行更改为powershell命令,并将其添加到脚本底部: 如果($lastexitcode-lt 8){$lastexitcode=0} 这对我有用