-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
49 lines (46 loc) · 1.14 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- .ivy2
- .m2
volumes:
- /tmp/cache:/cache
remote:
image: bigtruedata/sbt:0.13.15-2.11.8
commands:
- mkdir -p ~/.sbt/0.13
- cp global.sbt ~/.sbt/0.13
- sbt -Dsbt.ivy.home=./.ivy2 clean test publishM2
secrets: [ artifactory_host, artifactory_url, artifactory_username, artifactory_password ]
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- .ivy2
- .m2
volumes:
- /tmp/cache:/cache
artifactory:
image: athieriot/drone-artifactory
environment:
- DRONE_VERSION=0.8
group_id: org.dcs
artifact_id: org.dcs.remote
version: 0.5.0-SNAPSHOT
pom: target/org.dcs.remote-0.5.0-SNAPSHOT.pom
files:
- target/*.jar
force_upload: true
secrets: [ artifactory_url, artifactory_username, artifactory_password ]
when:
branch: master
status: [ success ]
slack:
image: plugins/slack
channel: builds
secrets: [ slack_webhook ]
when:
branch: master
status: [ success, failure ]