Examples of RunList


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

Examples of hudson.util.RunList

        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

Examples of hudson.util.RunList

    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

Examples of hudson.util.RunList

        rsp.forwardToPreviousPage(req);
    }

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

Examples of hudson.util.RunList

        @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

Examples of hudson.util.RunList

  @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

Examples of hudson.util.RunList

  @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

Examples of hudson.util.RunList

    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

Examples of hudson.util.RunList

    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

Examples of org.jclouds.scriptbuilder.domain.chef.RunList

      assertEquals(statementList.get(0).render(OsFamily.UNIX), expected.render(OsFamily.UNIX));
   }

   public void testCreateNodeConfigurationWithRunList() {
      ImmutableList.Builder<Statement> statements = ImmutableList.builder();
      RunList runlist = RunList.builder().recipe("foo").role("bar").build();
      ChefSolo solo = ChefSolo.builder().runlist(runlist).build();

      solo.createNodeConfiguration(statements);
      ImmutableList<Statement> statementList = statements.build();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.