自定义发布变量 - 用户输入 [英] Custom Release Variables - User Entered
问题描述
您好
TFS 2017 - 版本15.112.26307.0
构建代理:vsts-agent-win7-x64-2.112.0.zip
TFS 2017 - Version 15.112.26307.0
Build Agent : vsts-agent-win7-x64-2.112.0.zip
我已经配置了Build和Release,到目前为止工作正常。
I have configured Build and Release and it is working fine so far.
在Build Definition中,我创建了一个变量,并在排队时,它要求变量名的值。
In the Build Definition, I created a variable, and when queueing a build, it is asking for the value of the variable name.
但在发布定义中,我创建了一个变量,在创建"发布"时,我无法看到发布变量文本框。
我也尝试创建一个变量组,但在创建一个版本时我仍然看不到任何变量文本框。
我也尝试过读取构建变量发布任务,但它不会返回用户在构建时输入的值。
But in the Release Definition, I created a variable, and when creating a 'Release', I am not able to see the release variable textbox.
I also tried creating a variable group but I still cannot see any of the variable textbox during creation of a release.
I also tried reading the build variable in the release tasks, but it does not return the value entered by the user at the time of the build.
基本上我希望用户每次为发布变量赋予不同的值发布已创建。
Basically I want the user to give a different value for a release variable every time a release is created.
(据我所知,如果我们为发布或组变量提供值,我们可以使用它,
但是在t中帽子情况我们每次想要创建一个版本时都要更改构建定义,我认为这没有用。)
(I understand that if we give a value for the release or group variable we can use it,
But in that case we have to change the build definition everytime I want to create a release, which I guess is not helpful)
感谢任何帮助
谢谢你
Sameer
Thanks
Sameer
推荐答案
您好Sameer,
Hi Sameer,
目前,您在创建版本时无法更改发布变量值,例如在对构建进行排队时更改构建变量值。
Currently, you could not change the release variable value when create a release like change the build variable value when queue the build.
我找到了此功能的用户语音:
I found a user voice for this feature:
你可以投票或在那里添加评论。
you could vote it or add comment there.
最好的问候
这篇关于自定义发布变量 - 用户输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!