Cannot abandon a release on TFS2017 as one or more of the environments are in-progress
Asked Answered
M

2

5

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

Cannot abandon release 'Release-#' as one or more of the environments are in-progress.

enter image description here

Mousterian answered 4/4, 2017 at 19:29 Comment(3)
Are one or more environments in progress?Nicholenicholl
@DanielMann more than oneMousterian
Then the error message is telling you the problem.Nicholenicholl
M
15

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. enter image description here

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. 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.

enter image description here

Mousterian answered 5/4, 2017 at 12:43 Comment(2)
How do you get to the Environments tab?Lexeme
@SorinBolos go to Releases and you will see which one is running, double-click on it and you will see all the environments that are running the releaseMousterian
H
0

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.

Headship answered 5/4, 2017 at 9:54 Comment(1)
I edited my question and added a comment about restarting the agents, but you put me on the right direction, thanks anyways!Mousterian

© 2022 - 2024 — McMap. All rights reserved.