Reputation: 33
I have a project variable of {#ServiceVersion} in one of my config files and i need ot be able to set this to the octopus release number that's stored in the octopus variables.
I've tried the basic PowerShell script that looks something like this:
$ServiceVersion = "$($OctopusParameters['Octopus.Release.Number'])";
But that doesnt seem to work.
Upvotes: 1
Views: 924
Reputation: 1655
To alias an Octopus system variable, you'll need to add it as a variable to your project.
Then you can use the variable with one of the configuration substitution features.
Upvotes: 2