3
votes

Is there any way to pass parameters to azure devops build pipelines (YAML) when triggered on a schedule? E.g. if you want to build a release build nightly, but also a debug build weekly for example?

It doesn't seem right to have to duplicate the whole build pipeline to SomeBuild-Debug in order to make a build that has configuration=debug as defualt, to be able to schedule it?

1
I am also looking for a way to do this, but it does not look like this can be done without scripting or using something like Azure Logic Apps. I created a feature request here: developercommunity.visualstudio.com/idea/1204205/…Steve Glick
Couldn't you use a template pipeline for this? The template pipeline would contain all the pipeline stages, jobs and steps and you could create then two pipelines that extend the template pipeline providing only the parameters each defining different default values.whatever

1 Answers

1
votes

I came across this recently and I think there is. If you have access to the azure portal you could create an Azure Logic App that triggers on a schedule, and can start a "queue a new build". It allows for a json dictionary of parameters:

enter image description here

This allows to start the build with different parameters.