tfstfs-2015azure-pipelinescustom-build-step

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.

I Then need to click 'undo' to restore the removed custom build step.

Does anyone know why TFS is doing this? And also, is there any fix for this weird behaviour?


Solution

  • As it turns out, there was a minor configuration error in the task.json file. 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.

    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.