iT邦幫忙

0

gitlab runner錯誤

  • 分享至 

  • xImage

HI 各位大大好

我在執行gitlab的時候,有以下錯誤

Running with gitlab-runner 13.1.1 (6fbc7474)
   on  4-5sD1iJ
Preparing the "shell" executor
00:00
 Using Shell executor...
Preparing environment
00:00
 ERROR: Job failed (system failure): prepare environment: failed to start process: exec: "powershell": executable file not found in %PATH%. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information

參考這個 設了環境變數 還是一樣的錯誤 不知道是不是哪裡做錯了...
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2113

環境變數(在path加上 %SystemRoot%\System32\WindowsPowerShell\v1.0)
也試過加 %SystemRoot%\system32
但錯誤是一樣的...

gitlab-runner的config.toml

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "XXXXXXXXXX"
  url = "XXXXXXXXXXXX"
  token = "XXXXXXXXXXXXXX"
  executor = "shell"
  shell = "powershell"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]

環境是 windows server 2016

又麻煩大大們解惑了orz...

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答