Is it possible to limit "when" a deployment gets executed?
E.g. we have plans that get triggered by Pull Requests. They get deployed to either staging or production, depending on the branch that was merged (develop/master).
The plan to staging (develop branch) can deploy whenever merges happen, as it is the staging, and meh.
To production I want to limit deployments by time and day. No deployments to production (master branch) should be done on Friday/Saturday/Sunday and other days no deployments should be done after 15:00 or before 08:30.
The effect I want to achieve is that if a merge is done to master that it should be queued for the first allowed day after the allowed time.
E.g. A merge done to the master branch should be queued for Monday 08:30 or when an agent is available.