Thanks for getting in touch. What Paul said is correct. You need to set an environment as “Deploy automatically to this environment as soon as the release enters this phase” in the first phase of your lifecycle. See attached screenshot for a visual reference.
When you create a release (using Automatic Release Creation), it will reach its first phase, and it will automatically deploy to that environment.
Is it also possible to add another constraint to the automatic deploy such that it will not automatically deploy after a certain time. For example, we have a build that takes an unpredictable amount of time, we would like for it to be automatically deployed to some machines only if the build finishes before a certain time.
I’m afraid that kind of conditional setting is not possible at the moment. What you could do is, instead of using the Lifecycle’s automatic deployment feature, rely on your build server to follow that logic you just described and have it trigger the release/deploy if the build finishes before a certain time.
If you need help triggering a deployment from your build server, let me know which one you are using and i’ll point you to the right docs.