简体   繁体   English

TFS 2015不断删除自定义生成步骤

[英]TFS 2015 keeps removing custom build steps

For some reason, my on-premise TFS 2015 (update3) keeps removing the custom made build steps from build definitions when clicked on Edit Build Definition. 由于某些原因,我的本地TFS 2015(update3)在单击“编辑构建定义”时会不断从构建定义中删除自定义的构建步骤。

I Then need to click 'undo' to restore the removed custom build step. 然后,我需要单击“撤消”以还原删除的自定义构建步骤。

Does anyone know why TFS is doing this? 有人知道TFS为什么要这样做吗? And also, is there any fix for this weird behaviour? 而且,此异常行为是否有解决方法?

As it turns out, there was a minor configuration error in the task.json file. 事实证明, task.json文件中存在一个较小的配置错误。 The person who made the build task had Deploy as the value of the visibility property, where only Build and/or Release are valid values. 进行构建任务的人员将Deploy作为visibility属性的值,其中只有Build和/或Release是有效值。

I think this property somehow got mixed up with the category property - which is the build task category tab it belongs to - whereas visibility defines if the task is a valid build task for Build configurations and/or Release configurations. 我认为此属性某种程度上与category属性(它属于构建任务类别选项卡)混合在一起,而可见性定义了该任务对于Build配置和/或Release配置是否是有效的构建任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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