Get Package version from multiple TRANSFER PACKAGE step

(Earland) #1


Scenario is , I’m using transfer package step to download a jar or ear file artefact from an external maven feed.

From the multiple transfer package steps, how can I get the individual version number of the package?

(Kenneth Bates) #3

Hi @earland,

Thanks for getting in touch! When performing a deployment, Octopus automatically populates some system variables that contain information like package ID, version, and much more that are made available for use. A full list of the system variables available can be found in the following doc page.

You can also enable debugging variables in your project (OctopusPrintVariables and OctopusPrintEvaluatedVariables, both with a value of True) which will write all available variables and what they evaluate to in your deployment task log. You’ll see information similar to this (where Transfer Package is my step name, and transfer is my package ID).

I hope that helps give you the information needed! If you have any questions going forward, please don’t hesitate to reach out. :slight_smile:

Best regards,