Git is not recognized in Windows gitlab ci

后端 未结 4 537
梦如初夏
梦如初夏 2021-01-19 03:53

I configured a gitlab runner as explained here: https://docs.gitlab.com/runner/install/windows.html

Unfortunately, when I push to my repository, my pipeline fails:

相关标签:
4条回答
  • 2021-01-19 04:10

    Installing Git on C:\Git instead of c:\Program Files... fixed this problem for me.

    0 讨论(0)
  • 2021-01-19 04:14

    My runner was installed on an Amazon EC2 instance, and I installed git after I installed the runner. I found restarting the entire EC2 instance fixed it. Restarting the service was not enough.

    0 讨论(0)
  • 2021-01-19 04:23

    For me it happened that I installed git after I started PowerShell to run gitlab-runner. To fix this you need to restart PowerShell after git is installed and then restart gitlab-runner to get git on your PATH.

    0 讨论(0)
  • 2021-01-19 04:33

    I solved the problem myself: my .gitlab-ci.yml script was redefining the PATH environment variable.

    0 讨论(0)
提交回复
热议问题