Admin/jenkins/ci-extras/package
author paulson
Sat, 07 Nov 2020 23:20:43 +0000
changeset 72561 e1d04777d8b6
parent 63143 ef72b104fa32
permissions -rwxr-xr-x
merged

#!/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}/" .