Package nl.topicus.onderwijs.dashboard.datatypes.hudson

Examples of nl.topicus.onderwijs.dashboard.datatypes.hudson.Job


      }
    }
    List<Job> jobs = service.getJobs(project);
    if (jobs.isEmpty())
      return null;
    Job jobWithHighestNextBuildNumber = Collections.max(jobs,
        new BuildNumberComparator());
    return jobWithHighestNextBuildNumber.getNextBuildNumber() - 1;
  }
View Full Code Here


    StatusPageResponse response = RetrieverUtils.getStatuspage(jobReference
        .getUrl() + "api/json");
    if (response.getHttpStatusCode() != 200) {
      return;
    }
    Job job = mapper.readValue(response.getPageContent(), Job.class);
    job.setCode(code);

    List<Job> jobs = jobsCache.putIfAbsent(project, new ArrayList<Job>());
    if (jobs == null)
      jobs = jobsCache.get(project);

    for (Job job2 : jobs) {
      if (job2.getName().equals(job.getName())) {
        jobs.remove(job2);
        break;
      }
    }
    jobs.add(job);
View Full Code Here

TOP

Related Classes of nl.topicus.onderwijs.dashboard.datatypes.hudson.Job

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.