使用变量指定管道资源版本 [英] Specifying Pipeline resource version using variable

查看:54
本文介绍了使用变量指定管道资源版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用管道资源时,当我尝试将版本"字段的值用作变量值时发生错误.

When using Pipeline resource an error occurs when I am trying to use the value of the Version field as a variable value.

resources:
  pipelines:
  - pipeline: BuildApp
    source: BuildApp
    # version: $(appversion) <- this doesn't work
    version: 20191204.17  <- this works

静态版本看起来不太有用.是否可以为每次运行动态指定这样的版本?例如,使用变量.

Static version looks not so useful. Is it possible to specify such version for each run dynamically? For example, using variables.

推荐答案

建议已解决:

https://developercommunity.visualstudio.com/content/idea/845445/pipeline-resource-version-property-as-a-variable-1.html

微软的回答:虽然我们不允许该字段中的变量,但这是

Microsoft's answer: While we can’t allow variables in that field, this is an excellent use case for runtime parameters.

这篇关于使用变量指定管道资源版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆