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