Closed johnsimons closed 1 year ago
The Octopus CLI is already emitting an output variable that contains the release version, which could be used in a subsequent DeployRelease step.
@slewis74 looking into the impl code of OtopusCLI, it doesn't look like the syntax output from the CLI is in the correct format for Azure DEVOPS to understand.
Azure DevOps expects something like ##vso[task.setvariable variable=myOutputJobVar;isoutput=true]this is the same job too
, see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/set-variables-scripts?view=azure-devops&tabs=bash
This is the output we are getting in our tests: which looks very much TeamCity syntax 😞
This has been implemented in v6 of the create release step.
Create Release should be just about creating a release. If a deployment is required, the "Deploy" task should be used.
Sometimes, when Octopus auto assigns the release number we need this value to be set as an output variable so it can be used in subsequent "deploy" or "promote" tasks.