I talked about the tfs-cli tool before. This tool allows you to create and upload your own custom build steps both in VSTS and TFS on premise. Unfortunately to be able to use it on your local TFS instance, you have to enable Basic Authentication. If you don’t want to do that, you have to use the REST api’s to upload your custom task.
Although this is certainly possible, it’s not that easy to do. Luckily a colleague spend some time creating a Powershell script to simplify the process:
Just invoke the script, specify the location of your custom tasks, the url of your TFS instance and your windows credentials.