TFS2017.1 OnPrem:无法更改任务组参数 [英] TFS2017.1 OnPrem : Task Group parameters cannot be changed

查看:62
本文介绍了TFS2017.1 OnPrem:无法更改任务组参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在TFS2017.1本地测试任务组。我为所有发布步骤创建了一个任务组。

I am testing Task Groups in TFS2017.1 On-prem. I have created a Task Group for all my Publish steps.

TFS自动为Build.DropLocation和Build.BinariesDirectory创建参数。

TFS automatically creates parameters for Build.DropLocation and Build.BinariesDirectory.

虽然有编辑默认值和描述的框,我可以更改这些值,构建似乎没有获取任何更改。它们似乎使用创建任务组时设置的初始值。

While there are edit boxes for Default Value and Description, and I can change these values, the builds do not appear to be picking up any changes. They appear to use the initial values set when the Task Group was created.

当我使用Rest API查询构建定义时,我看到仍然设置了初始值。我没有收到我改变的值。

When I query the Build Definition using a Rest API, I see that the initial values are still set. I do not get back my changed values.

谢谢!

Dave S。

推荐答案

嗨Dave S,

Hi Dave S,

我试图创建一个名为"Publish"的任务组。我将Build.DropLocation默认值设置为下图:

I tried to create a Task Group named "Publish". And I set Build.DropLocation default value as the image below:

然后我创建一个构建定义,添加此任务组步骤。在构建定义中,我的设置如下图所示:

Then I create a build definition, add this Task Group Step. In build definition, my setting is like the picture below:

然后我对构建进行了排队,日志显示Build.DropLocation的值是默认值。

Then I queued the build, and the log shows that the value of Build.DropLocation is the default value.

但是如果你改变了构建定义中的Build.DropLocation值,build将使用构建定义中的值而不是Task Group Parameter的默认值。

But if you change the Build.DropLocation value in build definition, build will use the value in build definition instead of the Task Group Parameter default value.

请检查构建定义中的Build.DropLocation值是否为与默认值相同。

Please check whether your Build.DropLocation value in build definition is the same as Default value.

最好的问候


这篇关于TFS2017.1 OnPrem:无法更改任务组参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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