-
-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295 from oleg-nenashev/fix-mvn-cache
Ensure that Maven Cache performs the full build
- Loading branch information
Showing
1 changed file
with
3 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |