Skip to content

Commit

Permalink
Merge pull request #295 from oleg-nenashev/fix-mvn-cache
Browse files Browse the repository at this point in the history
Ensure that Maven Cache performs the full build
  • Loading branch information
oleg-nenashev committed May 10, 2020
2 parents 4aca537 + cb529d4 commit 117a832
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/docker/build-mvncache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
# Define maven version for other stages
FROM maven:3.5.4 as maven

FROM maven as jenkinsfilerunner-mvncache
ADD pom.xml /src/pom.xml
ADD app/pom.xml /src/app/pom.xml
ADD bootstrap/pom.xml /src/bootstrap/pom.xml
ADD setup/pom.xml /src/setup/pom.xml
ADD payload/pom.xml /src/payload/pom.xml
ADD payload-dependencies/pom.xml /src/payload-dependencies/pom.xml
ADD vanilla-package/pom.xml /src/vanilla-package/pom.xml

FROM maven:3.5.4
WORKDIR /src
ENV MAVEN_OPTS=-Dmaven.repo.local=/mavenrepo
ADD . /src
# We collect a full cache instead of resolving dependencies
# RUN mvn compile dependency:resolve dependency:resolve-plugins
RUN mvn clean package -Dmaven.test.failure.ignore=true -Denvironment=test
RUN cd /src && mvn clean package -Dmaven.test.failure.ignore=true

0 comments on commit 117a832

Please sign in to comment.