// 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++) {