JCP
JCP

Reputation: 119

How to Specifically Schedule Pipelines with Azure DevOps

How to schedule a one time run, non-repeating pipeline in AzurDevOps. I want to create this pipeline for our UAT environment, but I don't want to run it manually, so I was thinking is there a way I can put multiple specific dates to run the pipeline?

Upvotes: 1

Views: 2955

Answers (2)

Mattia Mele
Mattia Mele

Reputation: 129

Might be late on this, but now you can manually queue stages (link) in yaml pipelines. You can then set an approval check based on the time of the day (and day of week). (instructions)

With this when you queue the stage, provided you have set a timeout for the check longer than 1 day, the stage will pause until the time has come.

We use this to postpone our release, might be unwieldy if you need to do it only once, for that you can instead use a manual approval which can be deferred to a specific time

Upvotes: 0

unknown
unknown

Reputation: 7483

In short, we can't schedule a non-repeating pipeline in DevOps because it defines a schedule using cron syntax. Each Azure Pipelines scheduled trigger cron expression is a space-delimited expression with five entries(Minutes, Hours, Days, Months, Days of week).

If you need to run pipeline at some specific days, as a workaround, please schedule it on your end and call the Rest API to run your pipeline.

There are the detailed steps: https://blog.geralexgr.com/cloud/trigger-azure-devops-build-pipelines-using-rest-api.

Upvotes: 4

Related Questions