From 99847ec5f72dc674a7360e00dbc9ec44ea1965d0 Mon Sep 17 00:00:00 2001 From: Igor Stoppa Date: Fri, 16 Jan 2015 19:56:39 +0200 Subject: [PATCH] Fix for job status and additional store of env Success = Test is executed succesfully Unstable = Either some test fails or the build is not supported Fail = Any other case (Test fails, image unvailable, other errors) Add, for debuggign purposes, the environment file produced by the job. Change-Id: If4d473cdde982c3831dcd31b472d9ca7307ea751 --- jobs/image-tester/config.xml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/jobs/image-tester/config.xml b/jobs/image-tester/config.xml index 0f1ecf2..c62bdd8 100644 --- a/jobs/image-tester/config.xml +++ b/jobs/image-tester/config.xml @@ -10,6 +10,9 @@ false + + false + 100 @@ -44,9 +47,7 @@ #/bin/bash - -python ${WORKSPACE}/jenkins-scripts/job_test_build.py - +python ${WORKSPACE}/jenkins-scripts/job_test_build.py @@ -56,22 +57,32 @@ python ${WORKSPACE}/jenkins-scripts/job_test_build.py - **/results.tar.gz, **/results.xml, **/aft.log, **/tester.log - false + **/results.tar.gz, **/results.xml, **/aft.log, **/tester.log, **/*.ENV true + false + false + true def run = Thread.currentThread().executable def en = run.getEnvironment() -manager.addShortText("Image " + en["IMAGE"] + " - " + en["TEST_RESULT"]) -if (en["TEST_RESULT"] != "PASS") +if (en["IMAGE"] != "") + manager.addShortText("Image " + en["IMAGE"] + " - " + en["TEST_RESULT"]) +else + manager.addShortText(en["TEST_RESULT"]) +if (en["TEST_RESULT"] == "PASS") + manager.buildSuccess() +else if (en["TEST_RESULT"] == "IMAGE_NOT_SUPPORTED") + manager.buildUnstable() +else manager.buildFailure() 0 - + **/results.xml false + 1.0 @@ -84,7 +95,7 @@ if (en["TEST_RESULT"] != "PASS") false - test-results-publisher, + test-results-publisher, ALWAYS false -- 2.7.4