简体   繁体   English

由于一个或多个环境正在进行中,因此不能放弃TFS2017上的版本

[英]Cannot abandon a release on TFS2017 as one or more of the environments are in-progress

I want to abandon a release that is running multiple environments at the same time, but with every try on the Abandon option I am getting this error 我想放弃同时运行多个环境的版本,但每次尝试Abandon选项时我都会收到此错误

Cannot abandon release 'Release-#' as one or more of the environments are in-progress. 由于一个或多个环境正在进行中,因此无法放弃发布'Release-#'。

在此输入图像描述

Each environment changes it own status after the release creation and you have to go and cancel it mannually. 创建发布后,每个环境都会更改自己的状态,您必须手动取消它。 In order to abandon the release, each one needs to be canceled. 为了放弃发布,每个都需要被取消。 在此输入图像描述

Then you can try to abandon the release. 然后你可以尝试放弃发布。

Now trying to restart the agents on the server is the final step that we can try, there is another workaround, must of the time those agents have a process running on the server that is consuming the CPU's time, see which is the task that is running and kill it, automatically you will see how the steps on the release start failing, but you should try to avoid this way. 现在尝试重新启动服务器上的代理是我们可以尝试的最后一步,还有另一种解决方法,那些代理必须在服务器上运行正在消耗CPU时间的进程,看看哪个是任务运行并杀死它,自动你将看到发布的步骤如何开始失败,但你应该尽量避免这种方式。 Now there is something that I want to add on the later. 现在我想在后面添加一些内容。 You can see after you kill a task that the agent can be in an inconsistent state, go to the services and see VSTS Agent service that runs the task, if it is not running, feel free to start it again. 您可以在杀死代理可能处于不一致状态的任务后看到,转到服务并查看运行该任务的VSTS代理服务,如果它未运行,请随时重新启动它。

在此输入图像描述

According to the error info, since you are running multiple environments of your release. 根据错误信息,因为您正在运行发布的多个环境。 You need to abandon a status completed release either passed, canceled or a failed release. 您需要放弃已通过,取消或发布失败的状态已完成版本。

Please just waiting for sometime and try the abandon action again. 请等待一段时间再尝试放弃行动。 If you still get the same error info, check if a release has stuck In Progress. 如果仍然获得相同的错误信息,请检查版本是否在进行中。 And check if the build which trigger the release stuck. 并检查触发释放的构建是否卡住。 You restart the build agent in this case. 在这种情况下,您重新启动构建代理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM