Creating release to Octopus Deploy with packageversion using variables

martinkerr's Avatar


19 Oct, 2020 11:21 AM


I am integrating with Octopus Deploy to push packages after build using octo.exe. I also want to create a release from the build with the release number being the same as the package version. How can i use variables in the create_release_advanced section?

Example from yml
''' create_release: true
project: "Project Name" create_release_advanced: --packageversion $version
''' But i receive an error on build when creating th release stating '$version' is not a valid version string.

Can someone help please?


  1. Support Staff 1 Posted by Feodor Fitsner on 19 Oct, 2020 07:46 PM

    Feodor Fitsner's Avatar

    Try using $(appveyor_build_version) instead of $version.

  2. 2 Posted by martinkerr on 20 Oct, 2020 02:52 PM

    martinkerr's Avatar

    perfect, thanks Feodor

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Oct, 2021 12:38 PM
16 Oct, 2021 04:34 PM
15 Oct, 2021 08:29 PM
15 Oct, 2021 06:34 PM
13 Oct, 2021 03:47 PM


13 Oct, 2021 06:27 AM
13 Oct, 2021 05:54 AM
12 Oct, 2021 06:48 PM
12 Oct, 2021 06:47 PM
12 Oct, 2021 12:36 PM
11 Oct, 2021 10:05 AM