ci.jpl: parseTestResults: Skip lines which are not metadata
There can be other content in the parsed output.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ie3bd58048527a1a89ce916098c7ed73cca39ee7e
diff --git a/jenkins/ci.jpl b/jenkins/ci.jpl
index de9ac06..318274f 100644
--- a/jenkins/ci.jpl
+++ b/jenkins/ci.jpl
@@ -193,6 +193,10 @@
metadata = [:]
record.split('\n').each { line ->
record_metadata = line.split(': ')
+ // Skip lines which are not "metadata"
+ if (record_metadata.size() < 2) {
+ return
+ }
if (record_metadata[0] == 'Config Name') {
config_name = record_metadata[1]
} else {