I am using the Azure DevOps server pipeline shell script task when I passed the "$(Build.SourcesDirectory)" variable as a shell script arguments, I found the path is not getting "/" while printing the variable.
Here is the Azure DevOps Pipeline Task:
Here is my shell script:
!/bin/bash echo $1
Here is the output of the pipeline:
please give some idea how I can get actual path (with "/") while printing the variable?
"D:\Agent_1..."
. – sungtmsh tfsvariable.sh "$(Build.SourcesDirectory)"
in the task configuration and try. – sungtm