PackageVersion from TransferFile

How can I get the PackageVersion from a transfer file step?

br
/alex

Hi Alex,

Thanks for getting in touch! You can use the following System Variable:

#{Octopus.Action[StepName].Package.PackageVersion}

This is an Action variable, which means you will need to define the step you are referencing as I have above.

I tested this by creating a transfer package step and adding a script step following it with a write-host and this variable.

Let me know if this helps, or if you have any further questions here. :slight_smile:

Best regards,
Daniel

1 Like

Thx Daniel,
your suggestion worked fine :+1::grinning:

1 Like

Hi Alex,

Thanks for the update!

Please don’t hesitate to get in touch in the future if you have any other questions.

Best regards,
Daniel

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.