Revert "Change cutOff for test and remove wait for kernel completion"
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 30 Jun 2015 17:00:53 +0000 (13:00 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 30 Jun 2015 17:00:53 +0000 (13:00 -0400)
This reverts commit a034649dd85c5b59e38b1b43ac2e8d12d62137bc.

dsl/kernel-lttng-modules.seed.groovy

index 84d0e4bcdf2d79d57c5e474241461315b399dd10..e404d834505c2529e8c0cca9eccafa3eb7aef181 100644 (file)
@@ -87,7 +87,7 @@ class BasicVersion implements Comparable<BasicVersion> {
     }
 }
 
-def kernelTagCutOff = new BasicVersion("3.0", "")
+def kernelTagCutOff = new BasicVersion("4.1", "")
 def modulesBranches = []
 
 //def modulesBranches = ["master","stable-2.5","stable-2.6", "stable-2.4"]
@@ -266,10 +266,19 @@ jobs.each { job ->
     if (lastBuild == null) {
       try {
         def future = job.scheduleBuild2(0, new Cause.UpstreamCause(build))
-        println "\\tLaunched " + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName)
+        println "\\tWaiting for the completion of " + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName)
+        anotherBuild = future.get()
       } catch (CancellationException x) {
         throw new AbortException("\${job.fullDisplayName} aborted.")
       }
+      println HyperlinkNote.encodeTo('/' + anotherBuild.url, anotherBuild.fullDisplayName) + " completed. Result was " + anotherBuild.result
+
+      build.result = anotherBuild.result
+      if (anotherBuild.result != Result.SUCCESS && anotherBuild.result != Result.UNSTABLE) {
+        // We abort this build right here and now.
+        fail = true
+        println("Build Failed")
+      }
     } else {
       println("\\tAlready built")
     }
This page took 0.024714 seconds and 4 git commands to generate.