}
}
-def kernelTagCutOff = new BasicVersion("4.3", "")
-def modulesBranches = ["master","stable-2.5","stable-2.6", "stable-2.4"]
+def kernelTagCutOff = new BasicVersion("4.1", "")
+def modulesBranches = []
+//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"
def modulesURL = "git://git.lttng.org/lttng-modules.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 = "-"
+
+
+ println("CutOff index")
+ println(cutoffPos)
+
+
// Actual job creation
for (int i = cutoffPos; i < versions.size() ; i++) {