Creating release to Octopus Deploy with packageversion using variables

Hi,

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?

Thanks

  1. Try using $(appveyor_build_version) instead of $version.

  2. perfect, thanks Feodor

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

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

Generic

? 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