Manually install the Build Task (not recommended)

Last updated

If you'd like more control over the build task we've created, you can manually upload it yourself using Microsoft's TFX CLI tool.

This is also the method you'll need to use if you want to install the build task in your on-premises TFS instance.

Installing the Build Task

Clone the repository locally

git clone

Install TFX-CLI using NPM. You'll obviously need node installed to do this.

npm install -g tfx-cli

If you are using an on-premises TFS instance, authentication can only be performed using Basic authentication. See this page for information on how to enable it for your on-premises server.

When you log in, use --authType basic to authenticate that way. NTLM authentication is coming to the TFX tool soon.

Create a new Personal Access Token in Visual Studio Online or TFS in the Security tab for your Profile.

Specify All scopes. You can revoke this token as soon as the task is uploaded.

Login to your Visual Studio or TFS account using the TFX-CLI tool

 tfx login

Use the TFX-CLI tool to upload the Octopus Create Release task. You will need to point at the source\VSTSExtensions\OctopusBuildTasks\CreateOctopusRelease folder in the cloned repository.

 tfx build tasks upload <path-to-task>