Gitlab Ci fails out of box

im trying to setup gitlab-ci setup

below is my simple gitlab-ci.yml

image: maven:3.3.9-jdk-8
- .m2/repository
stage: build
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn compile -Dmaven.test.skip=true

but i get error in npm run build

[INFO] ERROR in ./~/graylog-web-plugin/plugin.js
[INFO] Module not found: Error: Can’t resolve ‘./lib/PluginManifest’ in ‘/builds/***/graylog2-server/graylog2-web-interface/node_modules/graylog-web-plugin’

what might be the problem ??

same commands works fine if i do it in any local/remote machines

You can take a look at the Travis CI configuration for Graylog for some inspiration:

@jochen im following .travis.yml as well but simple mvn compile fails with above error

any idea why this error comes ??


Try running the Maven build as a different user, i. e. not root.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.