aboutsummaryrefslogtreecommitdiff
path: root/ledge
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2019-08-28 22:02:12 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2019-08-29 12:27:21 +0300
commit4f1c3562935e0ecbb1f08302a56ce75a57ffd68b (patch)
tree2bf654f7c067a2a8f5b2e387f37558c3d0734386 /ledge
parent12b67e15c7933f79419a3002cf31fe24ca2b0791 (diff)
ledge-arm64-debian.yaml: add lava and qareports groovy scripts
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Change-Id: I9371fd8f9b299696df2309358b3227018a033123
Diffstat (limited to 'ledge')
-rw-r--r--ledge/qareports.groovy16
1 files changed, 16 insertions, 0 deletions
diff --git a/ledge/qareports.groovy b/ledge/qareports.groovy
new file mode 100644
index 00000000..37202872
--- /dev/null
+++ b/ledge/qareports.groovy
@@ -0,0 +1,16 @@
+if (manager.build.result == hudson.model.Result.SUCCESS) {
+ def desc = manager.build.getDescription()
+ if (desc == null) {
+ desc = ""
+ }
+
+ pattern = ~"https://qa-reports.linaro.org/testjob/[0-9]+"
+ manager.build.logFile.eachLine { line ->
+ matcher = pattern.matcher(line)
+ if (matcher.matches()) {
+ def id = matcher.group(1)
+ desc += "&nbsp;LAVA: <a href='https://qa-reports.linaro.org/testjob/${id}'>https://qa-reports.linaro.org/testjob/${id}</a><br/>"
+ }
+ }
+ manager.build.setDescription(desc)
+}