[MNG-6939] ITs fail when MAVENCODEBASE is relative (Unix)

This commit is contained in:
Michael Osipov 2020-06-10 20:08:00 +02:00
parent 0944ed2259
commit d53ceab6ea
1 changed files with 6 additions and 2 deletions

View File

@ -25,7 +25,11 @@
if [ -z "$MAVENCODEBASE" ] ; then
echo Please export MAVENCODEBASE
else
mvn verify -P versionlessMavenDist -f "$MAVENCODEBASE"
case "$MAVENCODEBASE" in
/*) ;;
*) MAVENCODEBASE="$PWD/$MAVENCODEBASE" ;;
esac
mvn verify -P versionlessMavenDist -f "$MAVENCODEBASE" || exit $?
mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo -DmavenDistro="$MAVENCODEBASE/apache-maven/target/apache-maven-bin.zip" -DwrapperDistroDir="$MAVENCODEBASE/apache-maven/target" -DmavenWrapper="$MAVENCODEBASE/maven-wrapper/target/maven-wrapper.jar"
fi