Admin/jenkins/ci-extras/package
author wenzelm
Mon Oct 30 20:12:10 2017 +0100 (22 months ago)
changeset 66949 6c5e4ac0398b
parent 63143 ef72b104fa32
permissions -rwxr-xr-x
NEWS;
     1 #!/usr/bin/env bash
     2 set -e
     3 
     4 VERSION=1
     5 
     6 # Build JAR and fetch sources
     7 mvn package
     8 
     9 # Copy to correct location
    10 mkdir -p lib
    11 cp "target/ci-extras-1.0-SNAPSHOT-jar-with-dependencies.jar" "lib/ci-extras.jar"
    12 
    13 # Clean up
    14 mvn clean
    15 
    16 # Package component
    17 rm -rf dist && mkdir -p dist
    18 tar czf "dist/ci-extras-${VERSION}.tar.gz" --exclude dist --transform "s/^\\./ci-extras-${VERSION}/" .