Gitlab Ci fails out of box


(graylog) #1

im trying to setup gitlab-ci setup

below is my simple gitlab-ci.yml

image: maven:3.3.9-jdk-8
cache:
paths:
- .m2/repository
build:
stage: build
script:
- 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


(Jochen) #2

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


(graylog) #3

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

any idea why this error comes ??

Thanks


(Jochen) #4

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


(system) #5

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