Can't change value of promted variable on release creation

I’m using Teamcity to create a package and a release in Octopus Deploy (2018.6.2). I want to change the value of a prompted variable when I create a release, so I added the Additional command line arguments: ‘–variable “name:value”’. This doesn’t seem to work, because the default value is used during the deployment proces. The same command line arguments do work if I use them to trigger a deployment. Is this a bug?

Hi Paul,

Thanks for getting in touch! This is the expected behavior; prompted variables’ values need to be supplied when the deployment is created instead of at release creation. If you pass the --variable argument in your create-release command without specifying the --deployto argument, the default value will be used during the deployment.

I hope that helps! Don’t hesitate to reach out if you have any further questions or concerns going forward. :slight_smile:

Kind regards,

Kenny

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.