From: Augustin Degomme Date: Mon, 15 Oct 2018 13:42:13 +0000 (+0200) Subject: have description use current build and not latest one (which may have been cancelled... X-Git-Tag: v3_22~888 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e529d79c390578099d7b5e3cbb779eb8dc4bed90 have description use current build and not latest one (which may have been cancelled before the current one finished) --- 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