OctopusTaskId is not integer

The variables documentation page states that OctopusTaskId is

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 tasks-6115 (string).

Hi Richard,

Thanks, sorry about this, the documentation has been updated. It used to be an integer before we moved to RavenDB.

Paul

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.

Hi Richard,

Doing a $OctopusTaskId.Replace("tasks-", "") is the only workaround at this stage.

Paul