I’m trying to create a new release in Octopus Deploy using the octo.exe tool in Team City and I’m having the following error:
Unrecognized command arguments: --releasenotefile, ./src/Project/_changelog.txt
This error is most likely occurring while executing octo as part of an automated build process. The following doc is recommended to get some tips on how to troubleshoot this: https://g.octopushq.com/OctoexeTroubleshooting
OK, I’ve looked at our documentation on this and I noticed that there are two slightly different commands:
--releaseNoteFile, --releaseNotesFile=VALUE
[Optional] Path to a file that contains Release
Notes for the new release. Supports Markdown
files.
When I tested --releaseNoteFile I received the same error as you, however, --releaseNotesFile did seem to work.
Could you try adding the additional ‘s’ in there and re-run the build?
The reasoning behind this is that we accidentally changed the argument from ReleaseNotesFile to ReleaseNoteFile in octo 7.3.3 (https://github.com/OctopusDeploy/OctopusCLI/issues/70) and then in following versions we allowed either to be used.
I’m assuming that your TeamCity server is using an octo CLI version older than 7.3.3 which is why you saw the error.