Nuget package based on variable

Hello Octopus Support,

We are busy with deploying our tenant specific nuget packages.
In our packages store (nuget) we have different packages names for our tenants.
Now we want to unpack these tenant specific Nuget Packages within one step but that is not possible because i cannot select these packages dynamically (based on an Octopus variable).

The main problem is that it’s not possible to use one step for deploying these tenant specific nuget packages, we need to create multiple steps based on tenant tags.

Could you help us out, is it possible to do this for example with PowerShell?

Kind regards,

Geert

Hi,

Thanks for getting in touch! If the package names contain tenant names then you could use #{Octopus.Deployment.Tenant.Name} variable in the Package Id field. E.g. #{Octopus.Deployment.Tenant.Name}.WebSite. The deployment process will use this variable to pick the right package for the each tenant.

Is that something you were looking for?

Regards

Pawel

Hello Pawel,

Thanks for the reply, unfortunately it’s not going to work, when creating a release it’s not picking up this variable (I think because i can’t select a tenant first when creating a release).

Regards,

Geert

Hi,

I just tried it and it worked for me but I have to say the UI is a bit unintuitive. Please, have a look at the attached screencast and see if that works for you.

Please let me know how you go.

Regards

Pawel

tanant_specific_packages.mp4 (2 MB)