简体   繁体   中英

While creating a YAML Pipeline, can we use library variables?

I am creating a YAML Pipeline where I am planning to use the values stored in the variables or variable group or the values from key vault on running the pipeline.

Inside pipeline---->Library-----> I have created a variable group and stored a variable.

Now, In my YAML Pipeline, I went to action button/ three dots----> triggers----->Variable Group-----> Link my Variable Group

Then, In my YAML pipeline, I am trying to call the variable using the following two options:

option 1: $(factoryName)

option 2: $[variables.factoryName]

But the variable is not getting called and I am getting the following error:

##[error]One of the deployment parameters has an empty key.

While creating a YAML Pipeline, can we use library variables?

Please check your key or value of variables in the variable group does not have space in between.

If your value required space then, use "" .

If above not help you, please share the variable group and the YAML file to us, so that we could test it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM