blob: a9166148b0671d8b1843ca23831a2b078d7502c2 [file] [log] [blame]
#!/bin/bash
if [[ "$GIT" == "" ]]; then
GIT=$WORKSPACE/git
fi
set -o nounset
set -o errexit
REPO=$1
REPO_FINAL=$2
REPO_NAME=$3
BUILD_TYPE=$4
CURDIR=`pwd -P`
cd "$REPO"
unzip -qq artifacts.jar
cd "$CURDIR"
java -cp "$GIT/releng/org.eclipse.oomph.releng/buildTools.jar" ArtifactRepositoryAdjuster \
"$REPO" \
"$REPO_FINAL" \
"$REPO_NAME"\
"$BUILD_TYPE"
cd "$REPO"
mv artifacts.out artifacts.xml
zip -r -9 -qq artifacts.jar artifacts.xml
rm artifacts.xml
cd "$CURDIR"