OctopusDeploy / OctoTFS

| Public | Octopus extensions for Azure DevOps, TFS, VSTS, and VSO
https://marketplace.visualstudio.com/items?itemName=octopusdeploy.octopus-deploy-build-release-tasks
Other
0 stars 42 forks source link

Remove ability from doing the deployment from "Create Release" task #225

Closed johnsimons closed 1 year ago

johnsimons commented 2 years ago

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.

slewis74 commented 2 years ago

The Octopus CLI is already emitting an output variable that contains the release version, which could be used in a subsequent DeployRelease step.

johnsimons commented 2 years ago

@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: image which looks very much TeamCity syntax 😞

benPearce1 commented 1 year ago

This has been implemented in v6 of the create release step.