We recently enabled version control (git) for the variables stored in Octopus.
We have diffrent packages we deploy depending on the channel selected on the deployment screen.
Before moving the variables to git, upon selecting the different channels the package name and number would update accordingly.
After the moving the variable to git, the #{WebsitePackageId} is not expanded nor is the latest version showing.
If clicking on the “select version” version button. There are no packages showing.
Again the #{WebsitePackageId} variable is not expended as it should.
If we enter the version manually in “Enter a version” field it is working as expected.
Is this a bug or are we missing something obvious?
Hi Magnus,
Thank you for getting in touch. I appreciate the report of this issue, though my apologies for the confusion it has caused. Great to hear you have a manageable workaround to this issue. I’ve been able to reproduce this and raised a bug report at the following link that you can track.
opened 05:32AM - 05 Oct 22 UTC
kind/bug
state/triage
team/config-as-code
### Team
- [X] I've assigned a team label to this issue
### Severity
On… e report with a workaround
### Version
2022.4.2898-hotfix.3812
### Latest Version
_No response_
### What happened?
If you bind package selection to a variable, where the variable is version controlled, the package does not display when creating the release, nor display the available versions.
### Reproduction
1. Bind a package ID selection to a variable in a package step
2. Convert your project/variables to be version controlled
3. Create a release
### Error and Stacktrace
_No response_
### More Information
During release creation it shows the package ID variable with binding syntax itself instead of package ID.
![image](https://user-images.githubusercontent.com/20388190/193988244-3fedcde0-a8b2-4725-921d-06fa974ba6d5.png)
Reported here: https://help.octopus.com/t/package-version-not-expanded-when-variable-stored-in-git/28437
### Workaround
Manually type in the version required and package/version evaluates correctly during deployment.
If you have any other questions or concerns in the future, please don’t hesitate to shout out.
Best regards,
Kenny
system
(system)
Closed
5 November 2022 05:35
4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.