0
votes

I am building an azure relase pipeline, When i press 'create release', I am brought to the following screen in which i can give input. How can i add in my own custom field, to define a new parameter?

For clarification, I am asking how to do those on a classic release pipeline, NOT a new yaml pipeline.

Here is how i would create parameters on a yaml pipeline:

parameters:
- name: aspName
  displayName: 'App service plan name'
  type: string
  default: mydefaule

enter image description here

3

3 Answers

1
votes

you have to set it in the variable tab of the pipeline, and ensure its ticked as "settable at queue time"

you then reference it by using "$(variableName)" within the stage you wish to use it in

i cant embed images yet, link here

1
votes

That's an easy thing. You have to mark which release variables are settable (right column in variables tab).

https://i.stack.imgur.com/pxmDH.png

1
votes

The custom Runtime Paramters is only supported by Yaml Pipeline.

Here is a doc about Runtime parameters

In the release pipeline, I am afraid that there is no exactly the same feature.

Similar feature: You could set the release variable as Settable at release time.

enter image description here

Then when you run the release pipeline, you could set the variable value.

enter image description here

Note: This is Release Pipeline variable instead of Parameters. If you still want to get exactly the same function(Runtime parameters) as in the yaml pipeline, I suggest that you could vote the following Suggestion Ticket in Our UserVoice site: Runtime parameters with Release pipelines.