WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

Get solution details (preview) does not set variables defined in task #216

Closed bananamufu closed 3 years ago

bananamufu commented 3 years ago

Hi,

this might just be due to my own incompetence or the preview status of the task, but although the task correctly prints out the solution details in the console, it does not seem to set the assigned pipeline variables to their values.

image

image

Next action (powershell):

Write-Host "exists: " $env:EXISTS
Write-Host "displayname: " $env:DISPLAYNAME
Write-Host "version: " $env:VERSION

Outputs:

image

Kind regards, Tom

WaelHamze commented 3 years ago

@bananamufu for this task you need to define the variable in your pipeline first and then put the variables name without the $(). So instead of $(exists) just put exists

bananamufu commented 3 years ago

Hey @WaelHamze,

I thought I had tried it that way as well, but apparently that wasn't the case. It seems to be working now! Thanks a lot.

Kind regards, Tom

Sonali79-FS commented 1 year ago

Hello @bananamufu I am having the same issue with saving the values in the pipeline variables. Any suggestions?

sstridsberg commented 1 year ago

Hello @bananamufu I am having the same issue with saving the values in the pipeline variables. Any suggestions?

You need to just input the variable name, not call the variable value: "variablename" instead of "$(variablename)"