Thomas_B
(Thomas B)
1
Hi,
It seems there is a regression in the last version of Octopus (2018.11.3).
In the first step, we are using a powershell script which create the following variable:
$octopusPackageVersion = $OctopusParameters['Octopus.Action[Deploy App on IIS].Package.NuGetPackageVersion']
Then we use this variable for build and url that we display on output:
Write-Output "http://redacted?packageVersion=$octopusPackageVersion "
The url is now rendered as:
http://redacted?packageVersion=#{Octopus.Action.Package[].PackageVersion}
I am currently trying to change the script to directly use the PackageVersion property instead, as they seems to be the same:
$octopusPackageVersion = $OctopusParameters['Octopus.Action[Deploy App].Package.PackageVersion']
edit: that did not work and the variable is still rendered the same way.
Thomas_B
(Thomas B)
2
When I output all process variables using an enumerator, I get the following output:
OctopusParameters[Octopus.Action[Deploy].Number] = 2
OctopusParameters[Octopus.Action[Deploy].StepName] = Deploy
OctopusParameters[Octopus.Action[Deploy].Package[].PackageId] = (redacted)
OctopusParameters[Octopus.Action[Deploy].Package[].FeedId] = feeds-builtin
OctopusParameters[Octopus.Action[Deploy].Package[].PackageVersion] = 1.46.2.51986
OctopusParameters[Octopus.Action[Deploy].Package.PackageVersion] = #{Octopus.Action.Package[].PackageVersion}
OctopusParameters[Octopus.Action[Deploy].Package.NuGetPackageVersion] = #{Octopus.Action.Package[].PackageVersion}
OctopusParameters[Octopus.Action[Deploy].TargetRoles] = (redacted)
OctopusParameters[Octopus.Action[Deploy].Id] = (redacted)
OctopusParameters[Octopus.Action[Deploy].Name] = Deploy
Thomas_B
(Thomas B)
3
Ok, it works when using Octopus.Action[Deploy].Package[].PackageVersion
variable (with [] included).
It seems a recent version broke the .Package.PackageVersion
alias.
Hi,
Sorry you bumped into this problem. We also noticed on Friday.
Here’s the issue relating to it: https://github.com/OctopusDeploy/Issues/issues/5227
The fix rolled out in 2018.12.0 just now. Please let us know if that doesn’t solve your issue.
Michael
system
(system)
Closed
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.