From 4c57a40adaff61d4e518e00b63bca43b880b7db0 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 22 Jul 2019 15:44:29 +0200 Subject: [PATCH] add some color to project description --- tools/jenkins/project_description.sh | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/tools/jenkins/project_description.sh b/tools/jenkins/project_description.sh index 845abf1273..2a7ab8b076 100755 --- a/tools/jenkins/project_description.sh +++ b/tools/jenkins/project_description.sh @@ -128,7 +128,7 @@ function sortTable(n, type) { } } -" +" for node in "${nodes[@]}" do @@ -144,7 +144,27 @@ do ns3=$(get_ns3) py=$(get_python) os=$(grep -m 1 "OS Version" ./consoleText| sed "s/OS Version : \(.*\)/\1/g") - echo "" + + color1="" + color2="" + #in case of success, replace blue by green in status balls + wget --quiet https://ci.inria.fr/simgrid/buildStatus/text?job=SimGrid%2Fbuild_mode%3DDebug%2Cnode%3D${node} -O status >/dev/null 2>&1 + status=$(cat status) + if [ $status == "Success" ]; then + color1="&color=green" + fi + rm status + statusmc="" + wget --quiet https://ci.inria.fr/simgrid/buildStatus/text?job=SimGrid%2Fbuild_mode%3DModelChecker%2Cnode%3D${node} -O status >/dev/null 2>&1 + status=$(cat status) + if [ $status ]; then + if [ $status == "Success" ]; then + color2="&color=green" + fi + statusmc="" + fi + rm status + echo "" rm consoleText done @@ -173,7 +193,7 @@ do cmake=$(get_cmake) ns3=$(get_ns3) py=$(get_python) - echo "" + echo "" rm consoleText done -- 2.20.1
Name of the BuilderOSCompilerBoostJavaCmakens-3Python
Name of the BuilderOSCompilerBoostJavaCmakens-3PythonDebugMC
$node$os$compiler$boost$java$cmake$ns3$py
$node$os$compiler$boost$java$cmake$ns3$py${statusmc}
$node$os$compiler$boost$java$cmake$ns3$py
$node$os$compiler$boost$java$cmake$ns3$py