From f0dcd403e7334a9bc8c18b8090fc4bf9db595ee9 Mon Sep 17 00:00:00 2001 From: Rafael da Fonseca Date: Thu, 18 Jun 2015 22:41:20 +0200 Subject: [PATCH] Second phase wan't running properly due to path issue Add extra echo command to make sure there's data in the pom Signed-off-by: Daan Hoogland --- tools/travis/before_install.sh | 1 + tools/travis/downloadDeps.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/travis/before_install.sh b/tools/travis/before_install.sh index 770be61a641..b4a4bc410a4 100755 --- a/tools/travis/before_install.sh +++ b/tools/travis/before_install.sh @@ -102,6 +102,7 @@ done cd tools/travis ./downloadDeps.sh 2> /dev/null echo -e "\nDownloading Project dependencies" +echo -e "$(cat pom.xml |wc -l) lines in dummy pom.xml" for ((i=0;i<$RETRY_COUNT;i++)) do diff --git a/tools/travis/downloadDeps.sh b/tools/travis/downloadDeps.sh index 29248e0c8b9..acf13dca2a4 100755 --- a/tools/travis/downloadDeps.sh +++ b/tools/travis/downloadDeps.sh @@ -2,7 +2,7 @@ echo '4.0.0org.apache.cloudstacktravis-build-depsDownload Deps for Travis CI1' > pom.xml #Get all dependency blocks -for line in $(find . -name pom.xml -exec sed -n '//{:a;n;/<\/dependencies>/b;p;ba}' {} \; | grep -e "artifactId" -e "groupId" -e "version" -e "dependency\>" -e "exclusion\>" -e "exclusions\>"); do +for line in $(find ../../ -name pom.xml -exec sed -n '//{:a;n;/<\/dependencies>/b;p;ba}' {} \; | grep -e "artifactId" -e "groupId" -e "version" -e "dependency\>" -e "exclusion\>" -e "exclusions\>"); do #Tokenize values set -- $(echo $line | awk -v FS="(>|<)" '{print $2, $3}')