Skip to content

Commit

Permalink
[ADAM-827] Check for Hadoop/Spark version when running jenkins-test s…
Browse files Browse the repository at this point in the history
…cript.

Resolves #827.
  • Loading branch information
fnothaft committed Jul 6, 2016
1 parent aa627ae commit 782075b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/jenkins-test
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ DIR=$( cd $( dirname ${BASH_SOURCE[0]} ) && pwd )
PROJECT_ROOT=${DIR}/..
VERSION=$(grep "<version>" ${PROJECT_ROOT}/pom.xml | head -2 | tail -1 | sed 's/ *<version>//g' | sed 's/<\/version>//g')

# is the hadoop version set?
if ! [[ ${HADOOP_VERSION} ]];
then
echo "HADOOP_VERSION environment variable is not set."
echo "Please set this variable before running."

exit 1
fi

# is the spark version set?
if ! [[ ${SPARK_VERSION} ]];
then
echo "SPARK_VERSION environment variable is not set."
echo "Please set this variable before running."

exit 1
fi

# are we testing for scala 2.11? if so, we need to rewrite our poms to 2.11 first
if [ ${SCALAVER} == 2.11 ];
then
Expand Down

0 comments on commit 782075b

Please sign in to comment.