Substitute variable within code with octopus system variable

Hi in one of my projects I’d like to replace a variable within the source code with an octopus system variable for release-id but having some issues.

I’ve created a pre-deployment script to set the variable

${BUILDLVERSION} = $OctopusParameters[“Octopus.Release.Id”]

But unsure how I would substitute ${BUILDLVERSION} in the code it before it is deployed. Would anyone be able to give some advice please.

Hi @abi.oluwade1 ,

First of all, welcome to the Octopus forums!

Thanks for reaching out.

Could I please get a high level overview on what you are trying to achieve with your inquiry so I can make sure I am approaching the question in the right way?

Please let me know.

Thanks,
Jeremy

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