Skip to content

Failed to start process: exec: "cmd": executable file not found in %PATH%

I'm running Windows 7 x64 and I successfully installed runner and registered it to my GitLab. But I'm not able to run any build because no matter what I do it always immediatelly ends up with Failed to start process: exec: "cmd": executable file not found in %PATH%.

This I see in my GitLab image

This I see when running "gitlab-ci-multi-runner-windows-386.exe --debug run" in cmd.exe image

Another things I tried

  • I tried to explicitly use shell executor bash, powershell, cmd. It always fail that executable file is not found.
  • I added C:\Windows\System32 to PATH variable in Computer > Advanced System Settings > Environment variables
  • I tried even set enviroment in config.toml
  • I tried 386 and amd64 version of runner

My config.toml

concurrent = 1
check_interval = 0

[[runners]]
  name = "Example.org"
  url = "https://example.org/"
  token = "2362de103bae03babe4c68fbaa7b88"
  executor = "shell"
  environment = ["PATH=%PATH%;C:\\Windows\\System32"]
  [runners.cache]

My .gitlab-ci.yml

stages:
  - build

job:
  stage: build
  script:
  - echo "Test"
  tags:
  - NET