I've got a powershell script within a git repository that I use to build the project.
In the script, I'm trying to run the following command
Get-ChildItem -Path ${bamboo.build.working.directory}\src -Filter project.json -Recurse | ForEach-Object { & dnu restore $_.FullName 2>1 }and the above returns the following error
| 11-Feb-2016 12:39:43 | Get-ChildItem : Access to the path 'C:\cygwin\home\Administrator\.ssh' is denied. |
| 11-Feb-2016 12:39:43 | At C:\build\FCL-FCRP-JOB1\Build\01_Build.ps1:26 char:1 |
| 11-Feb-2016 12:39:43 | + Get-ChildItem -Path ${bamboo.build.working.directory}\src -Filter project.json - ... |
The above script would run fine as INLINE, but the variable would resolve to empty string if it ran as a File.
Does anyone experience the same problem? Or am I missing something here?
Thank you.