Somewhat new to GO and I inherited our company's CICD system recently from someone who's no longer available to inquire, so please bare with me.
Our pipelines inherit from a Template that has 4 Stages
- Build
- DeployToDev
- DeployToTest
- DeployToProd
We utilize TFS as our respostory and use OctopusDeploy to deploy and promote our code.
Our build script creates a release / version number that is a composite of [ChangeSet].[BuildSystemVersionChangeSet].[%PipelineCounter%][%StepCounter]. This is all derived in the Build Stage and passed into the build script.
I need to retain this number somehow so that I can use it in the DeployToDev / DeployToTest / DeployToProd Stages in order to specify to OctopusDeploy which specific release / version needs to be promoted for that specific step.
Therefore, my question is what is the correct manner to store this value from the build stage for later stages, but only for that specific pipeline 'release'.
Any help is appreciated.