Open patrick-smergut-octopus opened 1 month ago
Confirmed this was working in 2024.2
any chance there is an update on this?
Hi @justin-newman,
Here is the take from the engineering team:
This is expected behaviour, as build information is resolved at the time of release creation, and environments are not yet considered at that stage. Environments only come into play during deployment. Due to this bug fix related to build information, build info is no longer being associated because the #{packageName} variable is scoped to an environment. To restore the behaviour, descope one of the variables and use a 'Default' variable at the time of release creation. The more specifically scoped variable will always override the less specific one.
Ok, sounds weird! I was able to test this out though. I just changed the scope of the #{PackageType} variable which I was using for the package selection (Full thing was #{Octopus.Project.Name}.#{PackageType} where PackageType is Debug
or Release
). I removed the specific environment scopes for Debug and just left the Release variable scoped to staging and prod and I seem to be able to get the build information again.
Severity
Currently impacting one customer, could affect many
Version
2024.3.10026
Latest Version
None
What happened?
When a package is selected dynamically based on a project variable in a step template, the build information may not be associated with that deployment.
Build information may not associate with a deployment for a package, in the following scenario:
Deploy a Package
and the package is bound to a variable like#{MyPackageName}
)#{MyPackageName}
) is scoped to an environment (e.g.Test
)At the time of this report, it looks like this was working about 1 month ago.
Reproduction
Deploy a Package
step, and bind the package to a variable '#{MyPackageName}`MyPackageWithBuildInfo
)MyPackageName
and set the value to the above packageMyPackageWithBuildInfo
, then scope that value to an environment (e.g.Test
)Deploy a Package
to the deployment processTest
)Build Information
tab on the deployment and see there is no build information associatedError and Stacktrace
No response
More Information
First reported here: internal link
Workaround
Use system variables based on a channel to select the package, or hard-code the package name.