This patch contains the code changes to check the commit id in
[kvmfornfv.git] / ci / apex_build.sh
index 5b81840..8e57ac8 100755 (executable)
@@ -12,6 +12,10 @@ if [ "$branch" == "master" ] || [ "$branch" == "danube" ];then
    echo "Checking out on $branch branch"
    echo "Commit-id is ${commit_id}"
    git checkout -f ${commit_id}
+   if [ $? -ne 0 ];then
+      echo "Please check the commit-id provided in apex.conf"
+      exit 1
+   fi
 fi
 mkdir ${output_dir}
 }