Missing ) and use Thread.sleep
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 10 Jul 2015 18:35:55 +0000 (14:35 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 10 Jul 2015 18:35:55 +0000 (14:35 -0400)
dsl/kernel-lttng-modules.seed.groovy

index d5140a772e1b02dd88ddd647f503fbf0e2c6e9a5..56fe7468eb5c04d9fb9d5b5c8b50aa48cd37eb10 100644 (file)
@@ -295,7 +295,7 @@ while (toBuild.size() != 0) {
                ongoingBuild.push(job.scheduleBuild2(0))
                println "\\t trigering" + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName)
        } else {
-               wait(random.nextInt(120000)
+               Thread.sleep(random.nextInt(120000))
                ongoingBuild.removeAll{ it.isCancelled() || it.isDone() }
        }
 }
@@ -343,7 +343,7 @@ while (toBuild.size() != 0) {
                ongoingBuild.push(job.scheduleBuild2(0))
                println "\\t trigering " + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName)
        } else {
-               wait(random.nextInt(60000)
+               Thread.sleep(random.nextInt(60000))
                ongoingBuild.removeAll{ it.isCancelled() || it.isDone() }
        }
 }
This page took 0.023552 seconds and 4 git commands to generate.