'Azure DevOps Deferred / Scheduled Pipeline Run
With Release pipelines in Azure DevOps, you can set a pre-deployment approval for a stage.
When it is approved, the approver can choose to deploy it now, or defer the deployment for later.
I would like to be able to do something similar for other (non-release) pipelines.
I would like to be able to trigger a pipeline (including defining any required input variables), but defer its execution until a specific time.
I don't want a repeating schedule -- I want to be able to run it one time, at a specific time, with a specific set of input variables.
Is there any way to do this?
I am running Azure Devops Server.
Solution 1:[1]
There is no option to defer builds.
As workaround. You can add a variable like defer_seconds. Then use it (as an example) in PowerShell script in your build:
Start-Sleep -s $(defer_seconds)
Do not forget to increase your agent build timeout:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shamrai Aleksander |

