steps: - name: test when: event: [tag, push] image: maven:3-jdk-11 commands: - mvn -B -DskipTests clean package - mvn test -B volumes: - /home/docker/woodpecker/files/m2:/root/.m2 - name: archive-artifact when: event: [tag, push] image: alpine:latest commands: - mkdir -p /builds/javausbtool - cp target/javausbtool-*jar /builds/javausbtool/ volumes: - /home/www/builds:/builds