Package com.tupilabs.pbs.util

Examples of com.tupilabs.pbs.util.CommandOutput


    }
  }

  // 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;
View Full Code Here


    return this.loopSeek(jobId);
  }
 
  private boolean loopSeek(String jobId) {
    while (true) {
      CommandOutput cmd = PBS.traceJob(jobId, numberOfDays);
     
      String out = cmd.getOutput();
      //String err = cmd.getError();
     
//      listener.getLogger().println(out);
//      listener.getLogger().println("----");
      Matcher matcher = JOB_STATUS_REGEX.matcher(out.toString());
View Full Code Here

  public int getNumberOfDays() {
    return numberOfDays;
  }
 
  public PBSJob call() throws Throwable {
    final CommandOutput commandOutput = PBS.traceJob(jobId, this.numberOfDays);
    return new PBSJob(jobId, commandOutput.getOutput(), commandOutput.getError());
  }
View Full Code Here

TOP

Related Classes of com.tupilabs.pbs.util.CommandOutput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.