GitLab runner on Windows and dealing with & %ERRORLEVEL%
问题 In my .gitlab-ci.yml, i am trying to use the findstr command. findstr /c:"%SOLUTION_DIR%" gitlab.dif > founded.ref This command set the %ERRORLEVEL% to 1 if it has no match of "%SOLUTION_DIR%" in gitlab.dif. It seems like GitLab runner is interpreting this as a job failure. ERROR: Job failed: exit status 1 Is there any workaround? EDIT : my .gitlab-ci.yml file stages: - check - build check_diff: stage: check script: - git diff --name-only origin/develop...HEAD > _gitlab_diff.txt - git diff -