【发布时间】:2017-11-23 05:41:29
【问题描述】:
在自定义构建任务的 json 文件中,我更改了在您选择参数时将发送到 powershell 脚本的值:
{
"name": "VerbosityLevel",
"type": "pickList",
"label": "Level of Verbosity",
"required": true,
"helpMarkDown": "Select Verbosity level",
"defaultValue": "-v:n",
"options": {
"quiet": "quiet",
"minimal": "minimal",
"normal": "normal",
"detailed": "detailed",
"diagnostic": "diagnostic"
}
}
到这里:
{
"name": "VerbosityLevel",
"type": "pickList",
"label": "Level of Verbosity",
"required": true,
"helpMarkDown": "Select Verbosity level",
"defaultValue": "-v:n",
"options": {
"-v:q": "quiet",
"-v:m": "minimal",
"-v:n": "normal",
"-v:d": "detailed",
"-v:diag": "diagnostic"
}
}
不幸的是,在更改之前已经存在并且具有该构建步骤的所有构建定义都没有得到更新,并且仍然包含旧值。 Link to Build Definition json
当您更改现有参数的某些内容时,是否有任何有效的方法来更新所有预先存在的构建定义?
【问题讨论】:
-
我的理解是,如果您的任务版本号被更新,它会作为构建开始的一部分被拉下,并且构建任务不需要更新。您是否尝试过删除代理文件夹中的现有任务,然后查看作业运行时拉下的内容?那还是旧版本吗?
标签: json powershell tfs