icetanker
11-10-2019, 13:21
задача простая, скопировать из одной директории в другую файл
если запускаю команду через powershell все происходит корректно и файл копируется
если делают это в gitlabe, то получаю ошибку
- powershell -Command "Copy-Item "C:\security\Output\Security.exe" -Destination "C:\build\security""
+ Copy-Item C:\security\Output\Security.exe -Destination C:\build\security
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Copy-Item], IOException
+ FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Comma
nds.CopyItemCommand
если запускаю команду через powershell все происходит корректно и файл копируется
если делают это в gitlabe, то получаю ошибку
- powershell -Command "Copy-Item "C:\security\Output\Security.exe" -Destination "C:\build\security""
+ Copy-Item C:\security\Output\Security.exe -Destination C:\build\security
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Copy-Item], IOException
+ FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Comma
nds.CopyItemCommand