I have below PowerShell script in my Yaml pipeline, where I am trying to add Path in environmental variable Path, I am not getting any error but my test cases is failing which is dependent on one of the path variable I am setting below.
Is there a way if I can debug and see what all path has been added to my path variable below. If yes how can I see it?? as my test cases pass locally when setting the path env variable.
- powershell: |
Set-Variable -Name PATH -Value "$env:PATH;$(IppRoot)\redist\intel64_win\ipp;$(Build.SourcesDirectory)\Project_x64-$(osSuffix)\bin;$(Build.BinariesDirectory);$(LibFT4222Root)/imports/LibFT4222/dll/amd64"
Write-Host "##vso[task.setvariable variable=PATH]$PATH"
displayName: 'Add binaries to PATH on Win'
condition: eq(variables['Agent.OS'], 'Windows_NT')