Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure DevOps pipeline enter variable value from UI

I want user to enter value of the variable before click on Run pipeline button

I have empty variable in pipeline.yml:

- name: projectName
  value:

But UI doesn't show it:

enter image description here

How should I define var for user's input?

like image 416
kagarlickij Avatar asked Nov 25 '25 05:11

kagarlickij


1 Answers

From the docs:

You can choose which variables are allowed to be set at queue time, and which are fixed by the pipeline author. If a variable appears in the variables block of a YAML file, it's fixed and can't be overridden at queue time. To allow a variable to be set at queue time, make sure it doesn't appear in the variables block of a pipeline or job. You can set a default value in the editor, and that value can be overridden by the person queuing the pipeline.

So, you should remove it from the YAML and define in via the UI.

like image 199
Shayki Abramczyk Avatar answered Nov 27 '25 23:11

Shayki Abramczyk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!