show karaf.log tail instead of head when controller doesn't come up.
[releng/builder.git] / jjb / integration / include-raw-integration-deploy-controller-offline.sh
index 72a2009eaeb6f289045ac391f1fb810ce22f8d8c..97c4f548a9f470a0b9e92680b2fd22e2aa0daf07 100644 (file)
@@ -49,7 +49,7 @@ echo "Installing all features..."
 sshpass -p karaf ${WORKSPACE}/${BUNDLEFOLDER}/bin/client -u karaf "feature:install ${ACTUALFEATURES}" || echo $? > ${WORKSPACE}/error.txt
 
 echo "Killing ODL and fetching Karaf log..."
-head --bytes=1M "${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf.log" > "karaf.log"
+tail --bytes=1M "${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf.log" > "karaf.log"
 # TODO: Do we want different name for karaf.log chunk to signal it may be not complete?
 ps axf | grep karaf | grep -v grep | awk '{print "kill -9 " $1}' | sh
 sleep 5