Skip to content

GIT_STRATEGY="none"

I have a simple job:

deployapp:
  stage: deploy
  variables:
    GIT_STRATEGY: none
  tags:
    - deploy-server
  script:
    - echo OK

According to the GitLab CI documentation, GIT_STRATEGY="none" should omit the GIT clone/fetch phase, right? But my job always crashes with the following:

Running with gitlab-ci-multi-runner 1.7.0-rc.1 (8f8cbc3)
Using Shell executor...
Running on DEPLOY_SERVER...

'"git"' is not recognized as an internal or external command,

operable program or batch file.

Cloning repository for test_strategy_none with git depth set to 0...

'"git"' is not recognized as an internal or external command,

operable program or batch file.

The system cannot find the path specified.

Checking out d682a101 as test_strategy_none...

'"git"' is not recognized as an internal or external command,

operable program or batch file.

ERROR: Build failed: exit status 9009

My questions are: 1.) Am I missing something? Am I doing something wrong? 2.) Should the GIT_STRATEGY="none" skip git clone/fetch? If so, why does it crashes? Is git required in the path env. variables, even if GIT_STRATEGY="none"?

Thanks