The variables documentation page states that
An integer used to identity the current task in Octopus. You can use this if you need to record something unique about each deployment.
However, when I use
OctopusTaskId, instead of getting
6115 (integer), I get
Thanks, sorry about this, the documentation has been updated. It used to be an integer before we moved to RavenDB.
Any chance of getting it back as an integer? It’s easier to treat the integer as a string than to treat a string as an integer.
$OctopusTaskId.Replace("tasks-", "") is the only workaround at this stage.