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 += " LAVA: https://qa-reports.linaro.org/testjob/${id}
"
}
}
manager.build.setDescription(desc)
}