Use parent name instead of task name
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 16 Jul 2015 19:46:23 +0000 (15:46 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 16 Jul 2015 19:46:23 +0000 (15:46 -0400)
Matrix configuration store the main name into it's parent not the configuration
task.

dsl/kernel-lttng-modules.seed.groovy

index 723b5e042765d1a6c2aea00f1c5d56f464db61a7..f7af649e11292579fc15562637e5b7e36cd6d4a4 100644 (file)
@@ -297,18 +297,17 @@ while (toBuild.size() != 0) {
        // Throttle the build with both the number of current parent task and queued
        // task.Look for both kernel and downstream module from previous kernel.
        def queuedTask = q.getItems().findAll {
-               it.task.name.startsWith(jobStartWithKernel) ||
-               it.task.name.startsWith(jobStartWithModule)
+               (it.task.getParent().name.startsWith(jobStartWithKernel)) ||
+               (it.task.getParent().name.startsWith(jobStartWithModule))
        }
-
        if ((ongoingBuild.size() <= kernelEnabledNode.intdiv(2)) && (queuedTask.size() < limitQueue)) {
                def job = toBuild.pop()
                ongoingBuild.push(job.scheduleBuild2(0))
                println "\\t trigering " + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName)
        } else {
                println "Currently " + ongoingBuild.size() + " build currently on execution. Limit: " + kernelEnabledNode.intdiv(2)
-               println "Currently " + queuedTask.findAll{it.task.name.startsWith(jobStartWithModule)}.size() + " module jobs are queued. Limit: " + limitQueue
-               println "Currently " + queuedTask.findAll{it.task.name.startsWith(jobStartWithKernel)}.size() + " kernel jobs are queued. Limit: " + limitQueue
+               println "Currently " + queuedTask.findAll{it.task.getParent().name.startsWith(jobStartWithModule)}.size() + " module jobs are queued. Limit: " + limitQueue
+               println "Currently " + queuedTask.findAll{it.task.getParent().name.startsWith(jobStartWithKernel)}.size() + " kernel jobs are queued. Limit: " + limitQueue
                Thread.sleep(random.nextInt(60000))
                ongoingBuild.removeAll{ it.isCancelled() || it.isDone() }
        }
This page took 0.023542 seconds and 4 git commands to generate.