}
}
// adapted from https://github.com/jenkinsci/call-remote-job-plugin/blob/master/src/main/java/org/ukiuni/callOtherJenkins/CallOtherJenkins/JenkinsRemoteIF.java
private boolean seekEnd(String jobId, int numberOfDays, long span) {
CommandOutput cmd = PBS.traceJob(jobId, numberOfDays);
String out = cmd.getOutput();
String err = cmd.getError();
if (StringUtils.isBlank(out)) {
listener.getLogger().println("Could not find job " + jobId + " in PBS logs...Marking build as UNSTABLE");
listener.getLogger().println(err);
return false;