Ejemplo n.º 1
0
 public void doRssFailed(StaplerRequest req, StaplerResponse rsp)
     throws IOException, ServletException {
   rss(
       req,
       rsp,
       " regression builds",
       RunList.fromRuns(getBuilds()).regressionOnly(),
       Run.FEED_ADAPTER);
 }
Ejemplo n.º 2
0
 public void doRssLatest(StaplerRequest req, StaplerResponse rsp)
     throws IOException, ServletException {
   final List<Run> lastBuilds = new ArrayList<Run>();
   for (final TopLevelItem item : Hudson.getInstance().getItems()) {
     if (!(item instanceof Job)) continue;
     for (Run r = ((Job) item).getLastBuild(); r != null; r = r.getPreviousBuild()) {
       if (!(r instanceof AbstractBuild)) continue;
       final AbstractBuild b = (AbstractBuild) r;
       if (b.hasParticipant(this)) {
         lastBuilds.add(b);
         break;
       }
     }
   }
   rss(req, rsp, " latest build", RunList.fromRuns(lastBuilds), Run.FEED_ADAPTER_LATEST);
 }
Ejemplo n.º 3
0
 public void doRssAll(StaplerRequest req, StaplerResponse rsp)
     throws IOException, ServletException {
   rss(req, rsp, " all builds", RunList.fromRuns(getBuilds()), Run.FEED_ADAPTER);
 }