From e529d79c390578099d7b5e3cbb779eb8dc4bed90 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 15 Oct 2018 15:42:13 +0200 Subject: [PATCH] have description use current build and not latest one (which may have been cancelled before the current one finished) --- tools/jenkins/project_description.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/jenkins/project_description.sh b/tools/jenkins/project_description.sh index c2cf23b6c4..6d32a7b6d2 100755 --- a/tools/jenkins/project_description.sh +++ b/tools/jenkins/project_description.sh @@ -20,8 +20,13 @@ if [ -f consoleText ]; then rm consoleText fi + +if [ -z $BUILD_URL ]; then + BUILD_URL="https://ci.inria.fr/simgrid/job/SimGrid/lastBuild" +fi + #get the list of nodes on jenkins -wget --quiet https://ci.inria.fr/simgrid/job/SimGrid/lastBuild/consoleText >/dev/null 2>&1 +wget --quiet ${BUILD_URL}/consoleText >/dev/null 2>&1 nodes=($(grep -rR "Triggering SimGrid ? Debug," ./consoleText | sed "s/Triggering SimGrid ? Debug,\(.*\)/\1/g"| sort)) rm consoleText @@ -32,7 +37,7 @@ echo "
Description of the nodes - Automatically updated by project_descriptio for node in "${nodes[@]}" do - wget --quiet https://ci.inria.fr/simgrid/job/SimGrid/lastBuild/build_mode=Debug,node=${node}/consoleText >/dev/null 2>&1 + wget --quiet ${BUILD_URL}/build_mode=Debug,node=${node}/consoleText >/dev/null 2>&1 if [ ! -f consoleText ]; then echo "file not existing for node ${node}" exit 1 -- 2.20.1