summaryrefslogtreecommitdiff
path: root/post-build-lava.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'post-build-lava.groovy')
-rw-r--r--post-build-lava.groovy3
1 files changed, 1 insertions, 2 deletions
diff --git a/post-build-lava.groovy b/post-build-lava.groovy
index 5d81573..cbcc15d 100644
--- a/post-build-lava.groovy
+++ b/post-build-lava.groovy
@@ -5,8 +5,7 @@ def matcher = manager.getLogMatcher(".*LAVA Job Id.*")
if (matcher?.matches()) {
def lavaJobId = matcher.group(0).split(",")[0].substring(13)
if (!lavaJobId.isInteger()) {
- lavaSubJobs = matcher.group(0).substring(14).split("]")[0].replaceAll("'", "").split(",")
- lavaJobId = lavaSubJobs[0]
+ lavaJobId = matcher.group(0).tokenize("'")[1]
}
def lavaServer = matcher.group(0).tokenize("/")[1]
def lavaJobUrl = "https://${lavaServer}/scheduler/job/${lavaJobId}"