PackageVersion from TransferFile


(Alexander Ståhlberg) #1

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

br
/alex


(Daniel Fischer) #3

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


(Alexander Ståhlberg) #4

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


(Daniel Fischer) #5

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