Job complains "'python' is not recognized as an internal or external command, operable program or batch file. ERROR: Job failed: exit status 9009"


Here is the details about this problem: gitlab-runner#2834 (closed)

Summary

System Environment: gitlab runner machine is VMware machine Win10 x64, gitlab runner Version:

Version:      10.0.0~beta.55.g2055cfdc
Git revision: 2055cfdc
Git branch:   10-0-stable
GO version:   go1.8.3
Built:        Fri, 22 Sep 2017 12:22:32 +0000
OS/Arch:      windows/amd64

ENV:

C:\GitLab-Runner>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Users\user0\AppData\Local\Microsoft\WindowsApps;C:\ProgramFiles\CMake\bin;C:\Python27;

gitlab server is "GitLab Community Edition 9.5.5 3cf5eba3". gitlab server machine is CentOS7 x64.

When I launch pipeline from pipeline page, sometimes, a job complains the following error:

'python' is not recognized as an internal or external command,
operable program or batch file.
ERROR: Job failed: exit status 9009

Steps to reproduce

Here is the content of ".gitlab-ci.yml":

stages:
  - build
  - test
  - deploy


#####################################################################
#                  Winows
#####################################################################
build2016:win:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: build
  script: 
    - echo "Building the app 2016"
  tags:
    - win
#*****************************
#
build2017:win:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: build
  script: 
    - echo "Building the app 2017"
  tags:
    - win
#*****************************
#
#
test2016:win:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: test
  script: 
    - echo "Running tests 2016"
  tags:
    - win
#*****************************
#
test2017:win:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: test
  script: 
    - echo "Running tests 2017"
    - python ./project_py/test_py.py
  tags:
    - win
#*****************************
#
#
deploy_staging:win:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: deploy
  script:
    - echo "Deploy to staging server"
  environment:
    name: staging
    url: https://staging.example.com
  only:
  - master
  tags:
    - win
#*****************************
#####################################################################
#                  CentOS
#####################################################################
build2016:centos:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: build
  script: 
    - echo "Building the app 2016"
  tags:
    - centos
#*****************************
#
build2017:centos:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: build
  script: 
    - echo "Building the app 2017"
  tags:
    - centos
#*****************************
#
#
test2016:centos:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: test
  script: 
    - echo "Running tests 2016"
  tags:
    - centos
#*****************************
#
test2017:centos:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: test
  script: 
    - echo "Running tests 2017"
    - python ./project_py/test_py.py
  tags:
    - centos
#*****************************
#
#
deploy_staging:centos:
  variables:
    CI_DEBUG_TRACE: "true"
  stage: deploy
  script:
    - echo "Deploy to staging server"
  environment:
    name: staging
    url: https://staging.example.com
  only:
  - master
  tags:
    - centos
  • (On Gitlab runner machine win10x64 ) My PATH env on VMware machine win10x64 is: PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Users\user0\AppData\Local\Microsoft\WindowsApps;C:\ProgramFiles\CMake\bin;C:\Python27;
  • (On Gitlab server) Launch jobs: on the project page, "Pipelines" --> "Pipelines", click button "Run Pipeline" and "Create Pipeline"
  • (On Gitlab server) All other jobs passed except job "test2017:win" failed 7 times out of 15 retries. The log of this job complains:
'python' is not recognized as an internal or external command,
operable program or batch file.
ERROR: Job failed: exit status 9009
  • (On Gitlab runner machine win10x64 ) If I move "C:\Python27" from system environment variables to user environment variables, then PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Python27;C:\Users\user0\AppData\Local\Microsoft\WindowsApps;C:\ProgramFiles\CMake\bin;
  • reboot VMware machine win10x64,
  • (On Gitlab server) Launch jobs: on the project page, "Pipelines" --> "Pipelines", click button "Run Pipeline" and "Create Pipeline"
  • (On Gitlab server) I retried 10 times, all jobs passed.

Example Project

no

What is the current bug behavior?

  • (On Gitlab runner machine win10x64 ) After python path is moved to user environment variables, then reboot computer,

  • (On Gitlab server) Launch jobs: on the project page, "Pipelines" --> "Pipelines", click button "Run Pipeline" and "Create Pipeline"

  • (On Gitlab server) Job "test2017:win" often fails. It complains:

'python' is not recognized as an internal or external command,
operable program or batch file.
ERROR: Job failed: exit status 9009

What is the expected correct behavior?

Job "test2017:win" should pass.

Relevant logs and/or screenshots

Here is the log when job "test2017:win" failed:

Running with gitlab-runner 10.0.0~beta.55.g2055cfdc (2055cfdc)
  on meVMWin10 (52d17abd)
Using Shell executor...

C:\GitLab-Runner>setlocal enableextensions 

C:\GitLab-Runner>setlocal enableDelayedExpansion 

C:\GitLab-Runner>set nl=


C:\GitLab-Runner>echo Running on DESKTOP-2R41JO5... 
Running on DESKTOP-2R41JO5...

C:\GitLab-Runner>setlocal enableextensions 

C:\GitLab-Runner>setlocal enableDelayedExpansion 

C:\GitLab-Runner>set nl=


C:\GitLab-Runner>SET CI_PROJECT_DIR=C:/GitLab-Runner/builds/52d17abd/0/me/gitlabtest 

C:\GitLab-Runner>SET CI_SERVER=yes 

C:\GitLab-Runner>SET CI=true 

C:\GitLab-Runner>SET GITLAB_CI=true 

C:\GitLab-Runner>SET CI_SERVER_NAME=GitLab 

C:\GitLab-Runner>SET CI_SERVER_VERSION=9.5.5 

C:\GitLab-Runner>SET CI_SERVER_REVISION=3cf5eba 

C:\GitLab-Runner>SET CI_JOB_ID=777 

C:\GitLab-Runner>SET CI_JOB_NAME=test2017:win 

C:\GitLab-Runner>SET CI_JOB_STAGE=test 

C:\GitLab-Runner>SET CI_JOB_TOKEN=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_COMMIT_SHA=83b0d0a1a30073e57bd134038f80f980daf6e0cb 

C:\GitLab-Runner>SET CI_COMMIT_REF_NAME=master 

C:\GitLab-Runner>SET CI_COMMIT_REF_SLUG=master 

C:\GitLab-Runner>SET CI_REGISTRY_USER=gitlab-ci-token 

C:\GitLab-Runner>SET CI_REGISTRY_PASSWORD=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_REPOSITORY_URL=http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/me/gitlabtest.git 

C:\GitLab-Runner>SET CI_BUILD_ID=777 

C:\GitLab-Runner>SET CI_BUILD_TOKEN=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_BUILD_REF=83b0d0a1a30073e57bd134038f80f980daf6e0cb 

C:\GitLab-Runner>SET CI_BUILD_BEFORE_SHA=0000000000000000000000000000000000000000 

C:\GitLab-Runner>SET CI_BUILD_REF_NAME=master 

C:\GitLab-Runner>SET CI_BUILD_REF_SLUG=master 

C:\GitLab-Runner>SET CI_BUILD_NAME=test2017:win 

C:\GitLab-Runner>SET CI_BUILD_STAGE=test 

C:\GitLab-Runner>SET CI_PROJECT_ID=9 

C:\GitLab-Runner>SET CI_PROJECT_NAME=gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_PATH=me/gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_PATH_SLUG=me-gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_NAMESPACE=me

C:\GitLab-Runner>SET CI_PROJECT_URL=http://gitlab.<my private server>.com/me/gitlabtest 

C:\GitLab-Runner>SET CI_PIPELINE_ID=115 

C:\GitLab-Runner>SET CI_CONFIG_PATH=.gitlab-ci.yml 

C:\GitLab-Runner>SET CI_RUNNER_ID=14 

C:\GitLab-Runner>SET CI_RUNNER_DESCRIPTION=meVMWin10 

C:\GitLab-Runner>SET CI_RUNNER_TAGS=win 

C:\GitLab-Runner>SET CI_DEBUG_TRACE=true 

C:\GitLab-Runner>SET GITLAB_USER_ID=5 

C:\GitLab-Runner>SET GITLAB_USER_EMAIL=me@inmail.<my private server>.com 

C:\GitLab-Runner>IF EXIST "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest\.git" (
echo Fetching changes...  
 cd /D "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest"  
 IF 0 NEQ 0 exit /b 0  
 "git" "config" "fetch.recurseSubmodules" "false"  
 IF 0 NEQ 0 exit /b 0  
 rd /s /q ".git\index.lock"  2>NUL 1>NUL  
 rd /s /q ".git\shallow.lock"  2>NUL 1>NUL  
 IF EXIST ".git\hooks\post-checkout" (rd /s /q ".git\hooks\post-checkout"  2>NUL 1>NUL )  
 "git" "clean" "-ffdx"  
 IF 0 NEQ 0 exit /b 0  
 "git" "reset" "--hard"  
 IF 0 NEQ 0 exit /b 0  
 "git" "remote" "set-url" "origin" "http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/me/gitlabtest.git"  
 IF 0 NEQ 0 exit /b 0  
 "git" "fetch" "origin" "--prune" "+refs/heads/*:refs/remotes/origin/*" "+refs/tags/*:refs/tags/*"  
 IF 0 NEQ 0 exit /b 0 
)  ELSE (
dir "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest.tmp\git-template"   2>NUL 1>NUL  || md "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest.tmp\git-template"  2>NUL 1>NUL  
 rd /s /q "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest"  2>NUL 1>NUL  
 "git" "config" "-f" "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest.tmp\git-template/config" "fetch.recurseSubmodules" "false"  
 IF 0 NEQ 0 exit /b 0  
 echo Cloning repository...  
 "git" "clone" "--no-checkout" "http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/me/gitlabtest.git" "C:/GitLab-Runner/builds/52d17abd/0/me/gitlabtest" "--template" "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest.tmp\git-template"  
 IF 0 NEQ 0 exit /b 0  
 cd /D "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest"  
 IF 0 NEQ 0 exit /b 0 
) 
Fetching changes...
HEAD is now at 83b0d0a + variables:CI_DEBUG_TRACE:"true"

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>echo Checking out 83b0d0a1 as master... 
Checking out 83b0d0a1 as master...

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>"git" "checkout" "-f" "-q" "83b0d0a1a30073e57bd134038f80f980daf6e0cb" 

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>IF 0 NEQ 0 exit /b 0 

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>echo Skipping Git submodules setup 
Skipping Git submodules setup

C:\GitLab-Runner>setlocal enableextensions 

C:\GitLab-Runner>setlocal enableDelayedExpansion 

C:\GitLab-Runner>set nl=


C:\GitLab-Runner>SET CI_PROJECT_DIR=C:/GitLab-Runner/builds/52d17abd/0/me/gitlabtest 

C:\GitLab-Runner>SET CI_SERVER=yes 

C:\GitLab-Runner>SET CI=true 

C:\GitLab-Runner>SET GITLAB_CI=true 

C:\GitLab-Runner>SET CI_SERVER_NAME=GitLab 

C:\GitLab-Runner>SET CI_SERVER_VERSION=9.5.5 

C:\GitLab-Runner>SET CI_SERVER_REVISION=3cf5eba 

C:\GitLab-Runner>SET CI_JOB_ID=777 

C:\GitLab-Runner>SET CI_JOB_NAME=test2017:win 

C:\GitLab-Runner>SET CI_JOB_STAGE=test 

C:\GitLab-Runner>SET CI_JOB_TOKEN=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_COMMIT_SHA=83b0d0a1a30073e57bd134038f80f980daf6e0cb 

C:\GitLab-Runner>SET CI_COMMIT_REF_NAME=master 

C:\GitLab-Runner>SET CI_COMMIT_REF_SLUG=master 

C:\GitLab-Runner>SET CI_REGISTRY_USER=gitlab-ci-token 

C:\GitLab-Runner>SET CI_REGISTRY_PASSWORD=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_REPOSITORY_URL=http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/me/gitlabtest.git 

C:\GitLab-Runner>SET CI_BUILD_ID=777 

C:\GitLab-Runner>SET CI_BUILD_TOKEN=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_BUILD_REF=83b0d0a1a30073e57bd134038f80f980daf6e0cb 

C:\GitLab-Runner>SET CI_BUILD_BEFORE_SHA=0000000000000000000000000000000000000000 

C:\GitLab-Runner>SET CI_BUILD_REF_NAME=master 

C:\GitLab-Runner>SET CI_BUILD_REF_SLUG=master 

C:\GitLab-Runner>SET CI_BUILD_NAME=test2017:win 

C:\GitLab-Runner>SET CI_BUILD_STAGE=test 

C:\GitLab-Runner>SET CI_PROJECT_ID=9 

C:\GitLab-Runner>SET CI_PROJECT_NAME=gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_PATH=me/gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_PATH_SLUG=me-gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_NAMESPACE=me

C:\GitLab-Runner>SET CI_PROJECT_URL=http://gitlab.<my private server>.com/me/gitlabtest 

C:\GitLab-Runner>SET CI_PIPELINE_ID=115 

C:\GitLab-Runner>SET CI_CONFIG_PATH=.gitlab-ci.yml 

C:\GitLab-Runner>SET CI_RUNNER_ID=14 

C:\GitLab-Runner>SET CI_RUNNER_DESCRIPTION=meVMWin10 

C:\GitLab-Runner>SET CI_RUNNER_TAGS=win 

C:\GitLab-Runner>SET CI_DEBUG_TRACE=true 

C:\GitLab-Runner>SET GITLAB_USER_ID=5 

C:\GitLab-Runner>SET GITLAB_USER_EMAIL=me@inmail.<my private server>.com 

C:\GitLab-Runner>cd /D "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest" 

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>IF 0 NEQ 0 exit /b 0 

C:\GitLab-Runner>setlocal enableextensions 

C:\GitLab-Runner>setlocal enableDelayedExpansion 

C:\GitLab-Runner>set nl=


C:\GitLab-Runner>SET CI_PROJECT_DIR=C:/GitLab-Runner/builds/52d17abd/0/me/gitlabtest 

C:\GitLab-Runner>SET CI_SERVER=yes 

C:\GitLab-Runner>SET CI=true 

C:\GitLab-Runner>SET GITLAB_CI=true 

C:\GitLab-Runner>SET CI_SERVER_NAME=GitLab 

C:\GitLab-Runner>SET CI_SERVER_VERSION=9.5.5 

C:\GitLab-Runner>SET CI_SERVER_REVISION=3cf5eba 

C:\GitLab-Runner>SET CI_JOB_ID=777 

C:\GitLab-Runner>SET CI_JOB_NAME=test2017:win 

C:\GitLab-Runner>SET CI_JOB_STAGE=test 

C:\GitLab-Runner>SET CI_JOB_TOKEN=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_COMMIT_SHA=83b0d0a1a30073e57bd134038f80f980daf6e0cb 

C:\GitLab-Runner>SET CI_COMMIT_REF_NAME=master 

C:\GitLab-Runner>SET CI_COMMIT_REF_SLUG=master 

C:\GitLab-Runner>SET CI_REGISTRY_USER=gitlab-ci-token 

C:\GitLab-Runner>SET CI_REGISTRY_PASSWORD=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_REPOSITORY_URL=http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/me/gitlabtest.git 

C:\GitLab-Runner>SET CI_BUILD_ID=777 

C:\GitLab-Runner>SET CI_BUILD_TOKEN=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_BUILD_REF=83b0d0a1a30073e57bd134038f80f980daf6e0cb 

C:\GitLab-Runner>SET CI_BUILD_BEFORE_SHA=0000000000000000000000000000000000000000 

C:\GitLab-Runner>SET CI_BUILD_REF_NAME=master 

C:\GitLab-Runner>SET CI_BUILD_REF_SLUG=master 

C:\GitLab-Runner>SET CI_BUILD_NAME=test2017:win 

C:\GitLab-Runner>SET CI_BUILD_STAGE=test 

C:\GitLab-Runner>SET CI_PROJECT_ID=9 

C:\GitLab-Runner>SET CI_PROJECT_NAME=gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_PATH=me/gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_PATH_SLUG=me-gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_NAMESPACE=me 

C:\GitLab-Runner>SET CI_PROJECT_URL=http://gitlab.<my private server>.com/me/gitlabtest 

C:\GitLab-Runner>SET CI_PIPELINE_ID=115 

C:\GitLab-Runner>SET CI_CONFIG_PATH=.gitlab-ci.yml 

C:\GitLab-Runner>SET CI_RUNNER_ID=14 

C:\GitLab-Runner>SET CI_RUNNER_DESCRIPTION=meVMWin10 

C:\GitLab-Runner>SET CI_RUNNER_TAGS=win 

C:\GitLab-Runner>SET CI_DEBUG_TRACE=true 

C:\GitLab-Runner>SET GITLAB_USER_ID=5 

C:\GitLab-Runner>SET GITLAB_USER_EMAIL=me@inmail.<my private server>.com 

C:\GitLab-Runner>cd /D "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest" 

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>IF 0 NEQ 0 exit /b 0 

C:\GitLab-Runner>setlocal enableextensions 

C:\GitLab-Runner>setlocal enableDelayedExpansion 

C:\GitLab-Runner>set nl=


C:\GitLab-Runner>SET CI_PROJECT_DIR=C:/GitLab-Runner/builds/52d17abd/0/me/gitlabtest 

C:\GitLab-Runner>SET CI_SERVER=yes 

C:\GitLab-Runner>SET CI=true 

C:\GitLab-Runner>SET GITLAB_CI=true 

C:\GitLab-Runner>SET CI_SERVER_NAME=GitLab 

C:\GitLab-Runner>SET CI_SERVER_VERSION=9.5.5 

C:\GitLab-Runner>SET CI_SERVER_REVISION=3cf5eba 

C:\GitLab-Runner>SET CI_JOB_ID=777 

C:\GitLab-Runner>SET CI_JOB_NAME=test2017:win 

C:\GitLab-Runner>SET CI_JOB_STAGE=test 

C:\GitLab-Runner>SET CI_JOB_TOKEN=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_COMMIT_SHA=83b0d0a1a30073e57bd134038f80f980daf6e0cb 

C:\GitLab-Runner>SET CI_COMMIT_REF_NAME=master 

C:\GitLab-Runner>SET CI_COMMIT_REF_SLUG=master 

C:\GitLab-Runner>SET CI_REGISTRY_USER=gitlab-ci-token 

C:\GitLab-Runner>SET CI_REGISTRY_PASSWORD=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_REPOSITORY_URL=http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/me/gitlabtest.git 

C:\GitLab-Runner>SET CI_BUILD_ID=777 

C:\GitLab-Runner>SET CI_BUILD_TOKEN=xxxxxxxxxxxxxxxxxxxx 

C:\GitLab-Runner>SET CI_BUILD_REF=83b0d0a1a30073e57bd134038f80f980daf6e0cb 

C:\GitLab-Runner>SET CI_BUILD_BEFORE_SHA=0000000000000000000000000000000000000000 

C:\GitLab-Runner>SET CI_BUILD_REF_NAME=master 

C:\GitLab-Runner>SET CI_BUILD_REF_SLUG=master 

C:\GitLab-Runner>SET CI_BUILD_NAME=test2017:win 

C:\GitLab-Runner>SET CI_BUILD_STAGE=test 

C:\GitLab-Runner>SET CI_PROJECT_ID=9 

C:\GitLab-Runner>SET CI_PROJECT_NAME=gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_PATH=me/gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_PATH_SLUG=me-gitlabtest 

C:\GitLab-Runner>SET CI_PROJECT_NAMESPACE=me

C:\GitLab-Runner>SET CI_PROJECT_URL=http://gitlab.<my private server>.com/me/gitlabtest 

C:\GitLab-Runner>SET CI_PIPELINE_ID=115 

C:\GitLab-Runner>SET CI_CONFIG_PATH=.gitlab-ci.yml 

C:\GitLab-Runner>SET CI_RUNNER_ID=14 

C:\GitLab-Runner>SET CI_RUNNER_DESCRIPTION=meVMWin10 

C:\GitLab-Runner>SET CI_RUNNER_TAGS=win 

C:\GitLab-Runner>SET CI_DEBUG_TRACE=true 

C:\GitLab-Runner>SET GITLAB_USER_ID=5 

C:\GitLab-Runner>SET GITLAB_USER_EMAIL=me@inmail.<my private server>.com 

C:\GitLab-Runner>cd /D "C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest" 

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>IF 0 NEQ 0 exit /b 0 

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>echo $ echo "Running tests 2017" 
$ echo "Running tests 2017"

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>echo "Running tests 2017" 
"Running tests 2017"

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>IF 0 NEQ 0 exit /b 0 

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>echo $ python ./project_py/test_py.py 
$ python ./project_py/test_py.py

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>python ./project_py/test_py.py 
'python' is not recognized as an internal or external command,
operable program or batch file.

C:\GitLab-Runner\builds\52d17abd\0\me\gitlabtest>IF 9009 NEQ 0 exit /b 9009 

C:\GitLab-Runner>setlocal enableextensions 

C:\GitLab-Runner>setlocal enableDelayedExpansion 

C:\GitLab-Runner>set nl=

ERROR: Job failed: exit status 9009

Output of checks

no

Results of GitLab environment info

 

Results of GitLab application Check


Possible fixes

Move python path("C:\Python27") from system environment variables to user environment variables.