Closed W0GER closed 5 years ago
@W0GER When you say passing he variable value to step 2 Is it passed as input or are you reading the value task lib/from environment variables?
@W0GER I am closing this issue since we didn't hear back from you. Please feel free to reopen if you are still facing the issue.
Issue Description
In a Meta-Task (Task Group) In step 1 - PowerShell Script that executes:
Write-Host "##vso[task.setvariable variable=PullRequestSourceBranchName]$pullRequestSourceBranchName"
orWrite-Host "##vso[task.setvariable variable=PullRequestSourceBranchName;]$pullRequestSourceBranchName"
In step 2 - reference the $PullRequestSourceBranchName However in that step the variable is back to it's default value
Environment
Server - Azure Pipelines
Agent - Private:
Task logs
From Step 1 2018-11-29T18:24:09.3993074Z ##[debug]Processed: ##vso[task.setvariable variable=PullRequestSourceBranchName]49466-POCRenderingSelection
From Step 2 Passing in the variable to a task, the variable value is back to the default.
Error logs
No error is thrown by Azure DevOps