I'm using GitLab's "CI Multi-Runner", which I have installed on Windows 2012 R2 instance. Builds start correctly and begin to run, but the build is marked as complete before it even runs my entire script.
.gitlab-ci.yml
build_web:
script:
- cd Web
- npm install
- jspm install
- gulp build
Upon pushing, the pipeline runs through npm install
and then outputs "Build succeeded" and ends the build successfully (having skipped the following two commands).
I've been having these early exit issues on GitLab CI with Windows with NodeJs / NPM commands. I solved it using PowerShell to wrap the commands in place of directly calling NPM
replacing:
with:
In my case I needed to run grunt as well which caused the same issue so similarly wrapped like
Hope that works for you
Toby
Change
npm install
tocall npm install
. This is how the Windows shell works, if you don't usecall
it will execute in the same context and then exit after running.