blob: 3738addd150ff03688f911cf5c723eecad3c0cd0 [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/bin/" 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"