I am trying to build with Gitlab CI and sometimes it works, and sometimes it doesn’t work. I am trying to figure out why.
I am also trying to figure out what it means when I have a line in the yaml file that is in quotes.
For example, on a windows runner, what happens if I type
before_script: - call env.cmd
before_script: - "call env.cmd"
Should both be acceptable and work?
Without the call, it seems that there is a problem because the gitlab runner seems to break when I call certain batch files without an invocation via call.
There are strange errors, and I get this random failure, even though build.cmd definitely exists:
gitlab-ci-multi-runner 1.0.4 (014aa8c) Using Shell executor... Running on WPOSTMA... Fetching changes... HEAD is now at db574da build.cmd should return nonzero Checking out db574daa as master... HEAD is now at db574da... build.cmd should return nonzero $ call env.cmd $ echo build task begin. build task begin. $ call build.cmd The syntax of the command is incorrect. The system cannot find the path specified. C:\glrunner\builds\e1af4fcc\0\wpostma\RamSoft.WorklistPrototype2 $ echo build task end. build task end.
What is reporting “the syntax of the command is incorrect”? Is that a gitlab error or a windows batch file error?
How can I diagnose and troubleshoot when the runner seems to nuke the build folder? How do you troubleshoot this CI tool?