ZBLOG

ERROR: Job failed (system failure): prepare environment: failed to start process: exec: "pwsh": executable file not found in %PATH%. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information

This error message indicates that the GitLab Runner was unable to start a process because it could not find the PowerShell executable file in the system’s PATH environment variable.

To resolve this issue, you need to add the path of the PowerShell executable file to the system’s PATH environment variable. You can do this by following these steps:

  1. Open the Control Panel and click on System.

  2. Click on Advanced system settings, then click on Environment Variables.

  3. Under System Variables, scroll down and find the Path variable, then click on Edit.

  4. Add the path to the PowerShell executable file (usually located in C:\Windows\System32\WindowsPowerShell\v1.0).

  5. Click OK to close all windows and save changes.

After adding the path to the PowerShell executable file, try running the GitLab Runner job again to see if the issue has been resolved.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=1226

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?