}
"""
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
- kernel_trigger_job = hudson.model.Hudson.instance.getItem("dsl-trigger-kernel")
+ def kernel_trigger_job = hudson.model.Hudson.instance.getItem("dsl-trigger-kernel")
kernel_trigger_job.scheduleBuild2(0)
}
}