i want to setup gitlab-ci for maven
project which also needs to build using npm
i have a job like below
deploy:jdk8:
stage: test
script:
- 'npm install '
- 'mvn compile -Dmaven.test.skip=true'
- 'mvn package -B -Dmaven.test.skip=true -Dskip.web.build=true'
only:
- master
# Archive up the built documentation site.
artifacts:
paths:
- target
image: maven:3.3.9-jdk-8
in the below job i need both mvn
and npm instance but i can only declare only one image/ job how can i do this ??
我建议您分割工作并使用工件来传递构建结果以运行图像进行测试等。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.