OctoTFS Build Task Error

I recently upgraded to TFS 2015 (on premise). I installed the OctoTFS Build Task. Whenever my build gets to the step that creates the Octopus Deploy release, it generates the following error. It creates this error whether or not I choose to include comments and WI titles from my TFS server.

At C:\Agents\agent\tasks\OctopusCreateRelease\0.4.0\Octopus-CreateRelease.ps1:55 char:1
+ - $relatedWorkItems = $relatedWiResponse.Content | ConvertFrom-Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property.
At C:\Agents\agent\tasks\OctopusCreateRelease\0.4.0\Octopus-CreateRelease.ps1:62 char:1
+ - $workItemsDetails = $relatedWiDetailsResponse.Content | ConvertFrom-Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property.

Hi,

Thanks for getting in touch. There was a typo in the OctoTFS Octopus-CreateRelease.ps1 file and it has been updated in the Github repository. If you update it, it should work fine.

Hope this helps.

Rob

The script works great. Thanks for the quick response and fix.