String sNumberOfDays = request.getParameter("numberOfDays");
int numberOfDays = 1;
if (StringUtils.isNotBlank(sNumberOfDays)) {
numberOfDays = Integer.parseInt(sNumberOfDays);
} else {
PBSBuilderDescriptor descriptor = (PBSBuilderDescriptor) Jenkins.getInstance().getDescriptor(PBSBuilder.class);
numberOfDays = descriptor.getNumberOfDays();
}
String slaveName = request.getParameter("slaveName");
Computer computer = Jenkins.getInstance().getComputer(slaveName);
if (!(computer instanceof PBSSlaveComputer)) {