# Clean up the build result
rm -rf build-result/
mkdir -p build-result/downloads/
mkdir -p build-result/javadoc/
mkdir -p build-result/composite/
# call the versioning script when a release is built
# this will set the final release number for Maven artifacts according to RELEASE_TYPE
# and disable strict version checking by Tycho, so that p2 artifacts keep their qualifier
if [ "$RELEASE_TYPE" != "Integration" ]; then
pushd $(pwd) && cd git-repo
bash ./set_version.sh --release=$RELEASE_TYPE
popd
fi
gpg --batch --import "${KEYRING}"
for fpr in $(gpg --list-keys --with-colons | awk -F: '/fpr:/ {print $10}' | sort -u);
do
echo -e "5
y
" | gpg --batch --command-fd 0 --expert --edit-key $fpr trust;
done