Created
March 10, 2017 07:33
-
-
Save piti118/ac1898851bbda2df9079acb0e7f273de to your computer and use it in GitHub Desktop.
drone mvn example
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
pipeline: | |
restore-cache: | |
image: drillster/drone-volume-cache | |
restore: true | |
mount: | |
- /drone/.m2 | |
volumes: | |
- /tmp/cache:/cache | |
build: | |
image: maven:3.3.9-jdk-8 | |
environment: | |
- PROGRAM_ENV=test | |
commands: | |
- ls $HOME | |
- pwd | |
- mvn compile -Dmaven.repo.local=/drone/.m2/repository | |
- echo $HOME | |
- ls $HOME | |
- mvn test -Dmaven.repo.local=/drone/.m2/repository | |
rebuild-cache: | |
image: drillster/drone-volume-cache | |
rebuild: true | |
mount: | |
- /drone/.m2 | |
volumes: | |
- /tmp/cache:/cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment