Esempio n. 1
0
 public void doRssLatest(StaplerRequest req, StaplerResponse rsp)
     throws IOException, ServletException {
   List<Run> lastBuilds = new ArrayList<Run>();
   for (TopLevelItem item : getItems()) {
     if (item instanceof Job) {
       Job job = (Job) item;
       Run lb = job.getLastBuild();
       if (lb != null) lastBuilds.add(lb);
     }
   }
   RSS.forwardToRss(
       getDisplayName() + " last builds only",
       getUrl(),
       lastBuilds,
       Run.FEED_ADAPTER_LATEST,
       req,
       rsp);
 }
Esempio n. 2
0
 private void rss(StaplerRequest req, StaplerResponse rsp, String suffix, RunList runs)
     throws IOException, ServletException {
   RSS.forwardToRss(
       getDisplayName() + suffix, getUrl(), runs.newBuilds(), Run.FEED_ADAPTER, req, rsp);
 }