Admin/jenkins/ci-extras/package
author wenzelm
Thu, 21 Oct 2021 18:20:08 +0200
changeset 74565 11b8f026d6ce
parent 63143 ef72b104fa32
permissions -rwxr-xr-x
tuned;

#!/usr/bin/env bash
set -e

VERSION=1

# Build JAR and fetch sources
mvn package

# Copy to correct location
mkdir -p lib
cp "target/ci-extras-1.0-SNAPSHOT-jar-with-dependencies.jar" "lib/ci-extras.jar"

# Clean up
mvn clean

# Package component
rm -rf dist && mkdir -p dist
tar czf "dist/ci-extras-${VERSION}.tar.gz" --exclude dist --transform "s/^\\./ci-extras-${VERSION}/" .