}
}
-def kernelTagCutOff = new BasicVersion("4.0", "")
-def modulesBranches = ["master","stable-2.5.0","stable-2.6.0", "stable-2.4.0"]
+def kernelTagCutOff = new BasicVersion("4.3", "")
+def modulesBranches = ["master","stable-2.5","stable-2.6", "stable-2.4"]
def linuxURL = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"
// Find the version cutoff
def cutoffPos = versions.findIndexOf{(it.major >= kernelTagCutOff.major) && (it.minor >= kernelTagCutOff.minor) && (it.revision >= kernelTagCutOff.revision) && (it.build >= kernelTagCutOff.build) && (it.rc >= kernelTagCutOff.rc)}
+ // If error set cutoff on last so no job are created
+ if (cutoffPos == -1) {
+ cutoffPos = versions.size()
+ }
// Get last version and include only last rc
def last
def lastNoRcPos
String modulesPrefix = "lttng-modules"
String kernelPrefix = "dsl-kernel"
String separator = "-"
+
// Actual job creation
for (int i = cutoffPos; i < versions.size() ; i++) {
steps {
systemGroovyCommand(dslTriggerKernel)
}
+ triggers {
+ cron("H 0 * * *")
+ }
}
modulesBranches.each { branch ->
steps {
systemGroovyCommand(dslTriggerModule.replaceAll("JOBPREFIX",modulesPrefix + separator + branch + separator))
}
+ triggers {
+ scm('@daily')
+ }
}
}
}