Package hudson.util

Examples of hudson.util.RunList


        Node node = getNode();
        return (node != null) ? node.getSelfLabel().getTiedJobs() : Collections.EMPTY_LIST;
    }

    public RunList getBuilds() {
      return new RunList(Jenkins.getInstance().getAllItems(Job.class)).node(getNode());
    }
View Full Code Here


        return BuildStepMonitor.NONE;
    }

    public void buildDependencyGraph(AbstractProject owner, DependencyGraph graph) {
        if (enableFingerprintsInDependencyGraph) {
            RunList builds = owner.getBuilds();
            Set<String> seenUpstreamProjects = new HashSet<String>();

            for ( ListIterator iter = builds.listIterator(); iter.hasNext(); ) {
                Run build = (Run) iter.next();
                List<FingerprintAction> fingerprints = build.getActions(FingerprintAction.class);
                for (FingerprintAction action : fingerprints) {
                    Map<AbstractProject,Integer> deps = action.getDependencies();
                    for (AbstractProject key : deps.keySet()) {
View Full Code Here

    public void doRssFailed( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
        rss(req, rsp, " failed builds", getBuilds().failureOnly());
    }
   
    public RunList getBuilds() {
        return new RunList(this);
    }
View Full Code Here

        rsp.forwardToPreviousPage(req);
    }

    @Override
    protected HistoryWidget createHistoryWidget() {
        return new BranchHistoryWidget(this, new RunList(), HISTORY_ADAPTER, new DynamicBuildRepository(), getCurrentBranch());
    }
View Full Code Here

        @Override
        public void onRenamed(Item item, String oldName, String newName) {
            if (item instanceof AbstractProject) {
                AbstractProject p = Hudson.getInstance().getItemByFullName(newName, AbstractProject.class);
                if (p != null) {
                    RunList builds = p.getBuilds();
                    for (Object build : builds) {
                        if (build instanceof AbstractBuild) {
                            Collection<Fingerprint> fingerprints = ((AbstractBuild)build).getBuildFingerprints();
                            for (Fingerprint f : fingerprints) {
                                try {
View Full Code Here

  @Before
  public void setUp() throws Exception {
    AbstractProject project = mock(AbstractProject.class);
    action = new ProjectSonarAction(project);
    when(project.getBuilds()).thenReturn(new RunList());
  }
View Full Code Here

  @Test
  public void shouldGetLastUrl() throws Exception {
    AbstractProject<?, ?> project = mock(AbstractProject.class);
    Run<?, ?> build1 = mockedRunWithSonarAction(null);
    Run<?, ?> build2 = mockedRunWithSonarAction("http://foo");
    RunList list = mock(RunList.class);
    when(list.iterator()).thenReturn(Arrays.asList(build1, build2).iterator());
    when(project.getBuilds()).thenReturn(list);
    assertThat(SonarUtils.getLastSonarUrl(project)).isEqualTo("http://foo");
  }
View Full Code Here

    public void doRssFailed( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
        rss(req, rsp, " failed builds", getBuilds().failureOnly());
    }
   
    public RunList getBuilds() {
        return new RunList(this);
    }
View Full Code Here

    public List<AbstractProject> getTiedJobs() {
        return getNode().getSelfLabel().getTiedJobs();
    }

    public RunList getBuilds() {
      return new RunList(Hudson.getInstance().getAllItems(Job.class)).node(getNode());
    }
View Full Code Here

TOP

Related Classes of hudson.util.RunList

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.