diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-06-06 19:54:19 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-06-06 19:54:19 +0300 |
commit | cc14bdecbe4de18661a5022e034a817e317e1dd7 (patch) | |
tree | ec4448fc54c0c9b48a7cf990a79d4635a340a5eb /linaro-edk2-prep.yaml | |
parent | 5fe2ac9bba4b4dec0e19c425b85020179fece802 (diff) |
linaro-edk2-prep: set the build status to unstable if there's failures
uefi-tools result_print function prints the failure count.
read this value from the build log and set the build job status
accordingly (unstable if there's failure).
Change-Id: I185f3db2b5c06e68b9f8f5b0e6383d58affcdac7
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linaro-edk2-prep.yaml')
-rw-r--r-- | linaro-edk2-prep.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linaro-edk2-prep.yaml b/linaro-edk2-prep.yaml index 1f21941c03..b878d84a4d 100644 --- a/linaro-edk2-prep.yaml +++ b/linaro-edk2-prep.yaml @@ -310,5 +310,14 @@ property-file: post_build_lava_parameters_qemu_aarch64_uefi block: true publishers: + - groovy-postbuild: | + def matcher = manager.getLogMatcher("^fail\t.*") + if (matcher.matches()) { + resultFailCount = matcher.group(0).split("\t")[1].toInteger() + log resultFailCount + if (resultFailCount > 0) { + manager.buildUnstable() + } + } - email: recipients: 'leif.lindholm@linaro.org fathi.boudra@linaro.org' |