Is it possible to block environment from manual start in deployment plan
Asked by Anton_Kuryan:

Hi, here is little diagram:

![Untitled Diagram.png](https://community.atlassian.com/t5/image/serverpage/image-id/67731i099C9CBD584816AE/image-size/large?v=v2&px=999 "Untitled Diagram.png")  
Env1 and Env2 are deployed in parallel by deployment plan; Final env shall be triggered manually whenever suited. I want to safeguard myself from situation, when someone triggers final environment manually before Env1 or Env2 have finished execution.  
Is it possible by standard means of Bamboo or I shall go into scripting?


Answers:
author: Daniel Santos
body: Hi [@Anton_Kuryan](/t5/user/viewprofilepage/user-id/3471729)

we don't have any mechanism in Bamboo to can prevent that.  
I was trying to find a way to solve this problem and the best I could think of was somehow failing the **final** deployment when the results of **Env1** and **Env2**are still not available.

We don't have such restrictions or dependence between environments.  

* Do you want me to create a feature request for that?
* If the answer is yes, what would be the format of this feature? Can you give me more details on how you see that this feature could work?

comments: author: Anton_Kuryan
body: Yes, I would like to see it as a feature request, possibly coupled with another possibility: "and" behavior for Environment deployment switch (so, Final env shall be possible to start via Successful deployment trigger, which starts it only in case both envs are OK).

Format of a feature - maybe a dropbox at environment configuration which will say that environment is dependent on some other environments (so, I could select several with checkboxes, much like rights are assigned).

Can you advise on API call which I can use to track the status of previous environments?


author: Daniel Santos
body: Hi [@Anton_Kuryan](/t5/user/viewprofilepage/user-id/3471729)  

I'm sorry for the delay here, I needed some quiet time to work on this and it was difficult to find.  

This is the feature request I created based on your comment:

* [\[BAM-20677\] Allow triggering an environment only when multiple specified environments run with success](https://jira.atlassian.com/browse/BAM-20677)

This is a feature request that is related to the one we just created and could be of your interest:

* [\[BAM-17089\] Deploy to multiple machines in parallel - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/BAM-17089)

> Can you advise on API call which I can use to track the status of previous environments?

I created this community article to allow you getting the environment result information you need from REST API:

* [How to get Bamboo environment results from REST API](https://community.atlassian.com/t5/Bamboo-articles/How-to-get-Bamboo-environment-results-from-REST-API/ba-p/1203842#M22)  
  You can skip some of the steps suggested in this document if you navigate to the environment you want and get the environment id from the URL.

<br />

Please add yourself as a watcher and vote in the feature requests above. If you have more comments on this matter, just let me know.


author: Anton_Kuryan
body: Thank you. I will look into it


author: Daniel Santos
body: You are welcome! =\]