blob: 33cdc9379744ac97336e2192c3aab379e42d351b [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/target/classes/" 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"