我正在尝试遵循一些教程说明来测试Write-Host "Executing Protractor cmdline: & "$TestProtractorPathAndName"
$TestProtractorArgs "
if (test-path $TestProtractorResultPath) {Remove-Item –path
"$TestProtractorResultPath" –recurse}
New-Item -ItemType "directory" -path "$TestProtractorResultPath"
$args = "$TestProtractorArgs"
Write-Host "Run Protractor scripts"
Write-Host $TestProtractorResultFile
Write-Host $TestProtractorResultFileLabel
$process = Start-Process "$TestProtractorPathAndName" $args -Wait -
PassThru
Write-Host 'Exit code = $($process.ExitCode)'
New-OctopusArtifact -Path "$TestProtractorResultFile" -Name
"$TestProtractorResultFileLabel"
if ($process.ExitCode -eq 0){
Write-Host "Protractor cmdline complete"
} else {
write-error "Protractor cmdline failed"
}
(以防万一,请称为gcloud API
),但是我一定弄乱了与权限相关的内容,而且似乎什么也没找到在Google上。
每当我尝试执行任何kms
命令时,都会遇到相同的错误:
gcloud ...
我尝试后问题仍然存在:
-
cannot open path of the current working directory: Permission denied
-
sudo gcloud kms
-
chown -R $(whoami) ~/.config/gcloud
以及上述步骤的所有可能组合。
如果有关系的话,VM正在运行Ubuntu 18。