tag:help.appveyor.com,2012-11-13:/discussions/questions/50693-creating-release-to-octopus-deploy-with-packageversion-using-variablesAppVeyor: Discussion 2020-10-20T14:52:20Ztag:help.appveyor.com,2012-11-13:Comment/487414852020-10-19T11:21:22Z2020-10-19T11:21:22ZCreating release to Octopus Deploy with packageversion using variables<div><p>Hi,</p>
<p>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?</p>
<p>Example from yml<br>
''' create_release: true<br>
project: "Project Name" create_release_advanced: --packageversion $version<br>
''' But i receive an error on build when creating th release stating '$version' is not a valid version string.</p>
<p>Can someone help please?</p>
<p>Thanks</p></div>martinkerrtag:help.appveyor.com,2012-11-13:Comment/487414852020-10-19T19:46:00Z2020-10-19T19:46:00ZCreating release to Octopus Deploy with packageversion using variables<div><p>Try using <code>$(appveyor_build_version)</code> instead of <code>$version</code>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/487414852020-10-20T14:52:18Z2020-10-20T14:52:18ZCreating release to Octopus Deploy with packageversion using variables<div><p>perfect, thanks Feodor</p></div>martinkerr