我正在尝试从gitlab.ci.yml
文件执行PowerShell脚本,但是无法识别PowerShell命令。我尝试触发的PowerShell只有一行可以打印一些消息。
Running with gitlab-runner 11.5.0 (3afdaba6)
on docker-auto-scale fa6cab46
Using Docker executor with image ruby:2.5 ...
Pulling docker image ruby:2.5 ...
Using docker image sha356:7834f561ba80e65515163209a3f952fcd1d11f9ce4420ba63d952e5b52b77e1 for ruby:2.5 ...
Running on runner-fa6cab46-project-9772339-concurrent-0 via runner-srm-1545289526-a4a36a59...
Cloning repository...
Cloning into 'builds/leo.danny/jenkinsintegration'...
Checking out 4b9beba2 as master...
Skipping Git submodules setup
$ powershell "./JenkinsPowershell.ps1"
/bin/bash: line 70: powershell: command not found
ERROR: Job failed: exit code 1