variables: JAVA_HOME: "/usr/lib/jvm/java-1.8.0-openjdk-amd64" #build: # script: # - mvn package -B release: script: - mvn package -B - FILE= ls target/ | grep '\.zip$' | head -n 1 - echo $FILE - echo $CI_PROJECT_ID - echo $CI_COMMIT_TAG - echo ${CI_API_V4_URL} # - curl --request POST --header "PRIVATE-TOKEN: ${TOKEN}" --form "file=@${FILE}" only: refs: - master