Hi,
We recently upgraded our server from 3.2.8 to 3.3.4. We are using the ‘Create Octopus Release’ step in Visual Studio Team Services, from your ‘Octopus Deploy Build and Release Tasks’ extension (https://marketplace.visualstudio.com/items?itemName=octopusdeploy.octopus-deploy-build-release-tasks).
This was previously working fine before the server upgrade, although now we are getting an error when this step runs:
2016-04-01T08:33:58.0292363Z Path to Octo.exe = C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.97.1\tasks\OctopusCreateRelease\0.4.8\Octo.exe
2016-04-01T08:33:58.1252365Z C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.97.1\tasks\OctopusCreateRelease\0.4.8\Octo.exe create-release --project="MyProject" --server=(REMOVED) --apiKey=******** --enableServiceMessages --releaseNotesFile="C:\a\1\a\release-notes-f85cffc6-32f0-4328-8157-aa6351058277.md" --apiKey=(REMOVED)
2016-04-01T08:33:59.0934918Z Octopus Deploy Command Line Tool, version 3.3.5-vstslog.6+Branch.feature-vstslog.Sha.29928ef936eee077f630df7891e8fdef200a271f
2016-04-01T08:33:59.0944870Z Build environment is TeamFoundationBuild
2016-04-01T08:33:59.0954912Z Handshaking with Octopus server: (REMOVED)
2016-04-01T08:33:59.0954912Z Handshake successful. Octopus version: 3.3.4; API version: 3.0.0
2016-04-01T08:33:59.0963082Z Authenticated as: Scott Gulliver <(REMOVED)>
2016-04-01T08:33:59.0968916Z Finding project: MyProject
2016-04-01T08:33:59.2619591Z Finding deployment process for project: MyProject
2016-04-01T08:33:59.4841656Z Error from Octopus server (HTTP 200): Unable to process response from server: Error reading string. Unexpected token: StartObject. Path 'Steps[2].Actions[0].Properties.['Octopus.Action.IISWebSite.ApplicationPoolPassword']', line 89, position 67.. Response content: {
2016-04-01T08:33:59.4841656Z "Id": "deploymentprocess-Projects-181",
2016-04-01T08:33:59.4851649Z "ProjectId": "Projects-181",
2016-04-01T08:33:59.4861654Z "Steps": [
2016-04-01T08:33:59.4861654Z {
2016-04-01T08:33:59.4881653Z
2016-04-01T08:33:59.4881653Z Exit code: -7
2016-04-01T08:33:59.5351627Z ##[error]Unexpected exit code -7 returned from tool Octo.exe
I am also able to reproduce this error locally, when using version 3.3.2 of the command line tool (this also worked before the server upgrade). Unfortunately, I haven’t been able to get version 3.3.5 to try locally, as this seems to be the version which the VSTS step is using. If I try the same command from a newer version of the tool (3.3.9), it seems to work fine. Based on this, I’d guess that the VSTS extension likely needs to be updated to make use of a newer version of the octo.exe tool?
Any help would be greatly appreciated.
Thanks,
Scott