diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-11-09 07:51:26 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-11-09 07:51:26 +0200 |
commit | 75eeebb348d6ec05bad096d3cfa95f1eaced4e82 (patch) | |
tree | 6f3157d4117c3e15ac03edbdb93c2ec510fd1c6c /spark.yaml | |
parent | c441296c88fd3c0a45a52ec2f165b16b2a530ea7 (diff) |
spark: set the build unstable when a test isn't successful
Change-Id: I6f8c5dd5c0492ebda251502e44c3a2dbe4548042
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'spark.yaml')
-rw-r--r-- | spark.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spark.yaml b/spark.yaml index e5cf937f08..33c7ab9920 100644 --- a/spark.yaml +++ b/spark.yaml @@ -78,5 +78,16 @@ publishers: - archive: artifacts: 'spark-*-SNAPSHOT*.jar' + - groovy-postbuild: | + pattern = ~/(^\[INFO]) (Spark Project) (.*). (.*) (\[.*])/ + manager.build.logFile.eachLine { line -> + matcher = pattern.matcher(line) + if (matcher.matches()) { + result = matcher.group(5) + if (result != "SUCCESS") { + manager.buildUnstable() + } + } + } - email: recipients: 'naresh.bhat@linaro.org fathi.boudra@linaro.org' |