添加 drone.yml
@@ -0,0 +1,21 @@
+kind: pipeline
+name: pipeline-example-maven
+
+steps:
+- name: Maven编译
+ image: maven:3-jdk-11
+ volumes:
+ - name: install
+ path: /root/cicdtest
+ commands:
+ - mvn clean compile
+volumes:
+- name: install
+ host:
+ path: /tmp/cache/.m2
+trigger:
+ branch:
+ - master