Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body assigned value from powershell task variable always seen as nothing in it #57

Open
eliassal opened this issue Mar 26, 2024 · 0 comments

Comments

@eliassal
Copy link

Hi, I started your sendemail which worked fine until I started to populate the body by a value from a prcedent powershell task in which I initialize the variable.

In send email I do this
Body: "To test variable value: $({getIssues}.alertSonarIssues)"

and the variable is populated in the PS task as follows

- powershell: |
   Write-Host "calling sonar to see how many issues"
......
     Write-Host "##vso[task.setvariable variable=alertSonarIssues;isOutput=true;]$allMajorissuesOnlyIssues"
.......
  name: 'getIssues'
  displayName: 'GetAllIssues'

When I do Write-host of the variable in a 3rd task. I see the text in the pipeline debug screen which is not nothing

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant