[JENKINS-22575] fix NumberFormatException when numBuilds is not constrained
[JENKINS-22575] Prepare for matrix support that does not seem to work ATM