Skip to content

Instantly share code, notes, and snippets.

@piti118
Created March 10, 2017 07:33
Show Gist options
  • Save piti118/ac1898851bbda2df9079acb0e7f273de to your computer and use it in GitHub Desktop.
Save piti118/ac1898851bbda2df9079acb0e7f273de to your computer and use it in GitHub Desktop.
drone mvn example
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