Add label node restriction definition on dynamic artifacts copy
[lttng-ci.git] / dsl / kernel-lttng-modules.seed.groovy
index d5140a772e1b02dd88ddd647f503fbf0e2c6e9a5..50d10110bea54ffd80d5594499cbeeb49b4f3cb7 100644 (file)
@@ -234,7 +234,7 @@ if ( result.exitValue() == 0 ) {
                             }
                         }
                         steps {
-                            copyArtifacts("${jobName}/arch=\$arch", "linux-artifact/**", '', false, false) {
+                            copyArtifacts("${jobName}/arch=\$arch,label=kernel", "linux-artifact/**", '', false, false) {
                                 latestSuccessful(true) // Latest successful build
                             }
                             shell(readFileFromWorkspace('lttng-modules/lttng-modules-dsl-master.sh'))
@@ -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.022421 seconds and 4 git commands to generate.