From: Jonathan Rajotte Date: Mon, 27 Apr 2015 22:09:58 +0000 (-0400) Subject: Always rebuild linux trigger and trigger it after X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e2f57497d1fab48431b33849527cd74be7fa3b8a;p=lttng-ci.git Always rebuild linux trigger and trigger it after --- diff --git a/dsl/kernel-lttng-modules.seed.groovy b/dsl/kernel-lttng-modules.seed.groovy index 6c65845..666547d 100644 --- a/dsl/kernel-lttng-modules.seed.groovy +++ b/dsl/kernel-lttng-modules.seed.groovy @@ -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) } - }