variables: JAVA_HOME: "/usr/lib/jvm/java-1.8.0-openjdk-amd64" build: script: - mvn package -B release: script: - echo "create release" - FILE= ls target/ | grep *.zip | head -n 1 only: refs: - master