0

I am attempting to read a variable from a Variable Group in my YAML file and passing it on to a template file that consumes that value. The template file defines this parameter as a number and the variable group does indeed store this as a number.

Here I have my pipeline that is invoking the template stage-run-tests with the 4 parameters, 3 of which are read from a variable group.

Pipeline Code

The template accepts the 4 parameters and have them typed as number

Template Code

However, when I try running the pipeline, I get an error stating that the parameter was expecting a number and what was passed in was not a number.

Build Failure

If I remove the strong typing and I simply use the parameters as is, then everything work fine.

Without strong typing

Can anyone help me with what's happening here? What should I do to ensure that I can have the parameters typed and still have the pipeline pass in the value from the variable group?

Rohit Mitra
  • 162
  • 4
  • 13

1 Answers1

0

Change the type: number to type: string, as there is no number type in a variable group.

Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39