Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'gitlab-runner' is not recognized as an internal or external command,

I'm using Windows 10 and installed gitlab-runner using the Gitlab's doc.

After a successful installation and registration, I try to leave the folderI used to install (C:\Gitlab-Runner in my instance) and try to run gitlab-runner. I get the response: 'gitlab-runner' is not recognized as an internal or external command, operable program or batch file.

I am able to run without issue in the C:\Gitlab-Runner folder, but nowhere else.

Based on the documentation and tutorials I looked at, I wouldn't expect this behavior; am I supposed to?

like image 504
voloved Avatar asked Sep 15 '25 19:09

voloved


1 Answers

Did you check to ensure that it was added to The windows environment. You will likely need to update the path variable to include the path that you are using to run the command.

On windows, you add to the PATH variable with the following steps (yanked from google search page):

On the Windows taskbar, right-click the Windows icon and select System.

In the Settings window, under Related Settings, click Advanced system settings. ...

On the Advanced tab, click Environment Variables. ... Click New to create a new environment variable.

Once you've added C:/Gitlab-runner/ to PATH, I believe you should be able to invoke with gitlab-runner.

The only thing I'll add is that, for setting PATH, the last step above is most likely unnecessary, as there will already be a variable named PATH with a list of directories stored in it. Just click EDIT and add your directory to the end of the list. Be sure to add the separator that is used for the others (I believe it's a semicolon on Windows...)

like image 68
Nate T Avatar answered Sep 17 '25 20:09

Nate T