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
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
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