Change docker image for CI/CD

revert-70aa11f8
Charitha Goonetilleke 6 years ago
parent f4d62df8db
commit 96a0a3c975

@ -1,30 +1,27 @@
image: charithag/docker-mvn-jdk8:latest
variables: variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode --errors --show-version" MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache: cache:
paths: paths:
- .m2/repository/ - .m2/repository/
- target/
build: build:
stage: build stage: build
script: script:
- mvn $MAVEN_CLI_OPTS clean install -Dmaven.test.skip=true - mvn $MAVEN_CLI_OPTS clean install -Dmaven.test.skip=true
tags:
- OracleJDK1.8
test: test:
stage: test stage: test
script: script:
- mvn $MAVEN_CLI_OPTS test - mvn $MAVEN_CLI_OPTS test
tags:
- OracleJDK1.8
deploy: deploy:
stage: deploy stage: deploy
script: script:
- mvn $MAVEN_CLI_OPTS deploy -Dmaven.test.skip=true - mvn $MAVEN_CLI_OPTS deploy -Dmaven.test.skip=true
tags:
- OracleJDK1.8
only: only:
- master - master
Loading…
Cancel
Save