Is there a way, we can define paramters in such a way in our YAML file so that at pipeine execution I will get check boxes for selection.
#Azure DevOps #YAML
Is there a way, we can define paramters in such a way in our YAML file so that at pipeine execution I will get check boxes for selection.
#Azure DevOps #YAML
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Prasad RaveendranPosted Apr 4, 2024, 12:49 AM
I believe, in Azure DevOps YAML pipelines, there isn't a direct way to have multiple checkboxes for selection using YAML parameters. However, you can achieve a similar result by using string parameters with predefined values.
Here's an example of how you can define multiple checkboxes using string parameters:
Saksham GuptaPosted Apr 1, 2024, 4:14 AM
Boolean type parameter will give only one checkbox but what I need is multiple checkboxes. Is it possible OOB?
Prasad RaveendranPosted Mar 31, 2024, 7:59 PM
you can define parameters in YAML as below
In this example,
booleanParamis defined as a boolean parameter, and its default value isfalse. When you trigger a pipeline run in Azure DevOps, you'll see a checkbox labeled "Enable Feature X" with the option to check or uncheck it.