Update LAVA related CI logs to make it more user-friendly
1. Make logs for debug silent by default to reduce redundant CI logs.
2. Print TF-M test log link together with its build job and LAVA test
job, to make it much easier for users to identify the test result of
a specific config.
3. Show TF-M test log link in the failure tests summary. Compared with
LAVA job log, TF-M test log is more readable for TF-M CI users.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I7051022602de4e05b7f31c0dcb7a1c285d8c4c49
diff --git a/jenkins/ci.jpl b/jenkins/ci.jpl
index 613e6b8..be5639f 100644
--- a/jenkins/ci.jpl
+++ b/jenkins/ci.jpl
@@ -459,13 +459,6 @@
return result[0]
}
-def showLinks(string) {
- def lines = string.split("\n")
- def result = lines.findAll { it.contains("Build Config: ")}
- links = result.join("\n")
- print(links)
-}
-
def getResult(string, match) {
line = lineInString(string, match)
a = line.split(match)[1].split(' ')
@@ -559,9 +552,8 @@
--artifacts-path cfgs --lava-timeout 12000 \
""", returnStdout: true).trim()
println("--- output from lava_wait_jobs.py ---")
- println(output)
+ println(output.replace("<BUILD_ARTIFACT_URL>", "${env.BUILD_URL}artifact/"))
println("--- end of output from lava_wait_jobs.py ---")
- showLinks(output)
archiveArtifacts artifacts: 'test_summary.*', allowEmptyArchive: true
archiveArtifacts artifacts: 'test_results.csv', allowEmptyArchive: true
g = new Gerrit()