Always rebuild linux trigger and trigger it after
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 27 Apr 2015 22:09:58 +0000 (18:09 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 27 Apr 2015 22:09:58 +0000 (18:09 -0400)
dsl/kernel-lttng-modules.seed.groovy

index 6c65845025b2246533085a644fed89c0baf43fcc..666547db4e308c084b25cd7eb644581a3649605c 100644 (file)
@@ -278,12 +278,20 @@ if (fail){
 }
 """
     if (isJenkinsInstance) {
+               try{
+                       def kernel_trigger_job = hudson.model.Hudson.instance.getItem("dsl-trigger-kernel")
+                       kernel_trigger_job.delete()
+               } catch(e){
+                       println("Kernel trigger already missing")
+               }
         freeStyleJob("dsl-trigger-kernel") {
             steps {
                 systemGroovyCommand(dslTriggerKernel)
             }
         }
 
+               // Trigger the kernel build
+               def kernel_trigger_job = hudson.model.Hudson.instance.getItem("dsl-trigger-kernel")
+               kernel_trigger_job.scheduleBuild2(0)
     }
-
 }
This page took 0.02327 seconds and 4 git commands to generate.