Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30813

Build pipeline plugin view display no job boxes at all

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • build-pipeline-plugin
    • None
    • Jenkins LTS 1.609.3
      Build Pipeline 1.4.8
      jQuery 1.11.2-0
      Firefox 38.3.0

      I have attached a picture of the problem. The job boxes are missing all together, but the arrows between them are there. I do not know how it got to that point. When I create a build pipeline on a different instance of Jenkins, it displays the job boxes. On the problematic jenkins instance, all the pipelines look desperately empty, as in the attached picture.

          [JENKINS-30813] Build pipeline plugin view display no job boxes at all

          Instrumenting the plugin code, I am finding that getDownstreamProjects() does not return any project.

          I have added a logger to help me, and the logs inside the loop never print anything!

              private ProjectForm(final AbstractProject<?, ?> project, final Collection<AbstractProject<?, ?>> parentPath) {
                  final PipelineBuild pipelineBuild = new PipelineBuild(project.getLastBuild(), project, null);
          
                  name = pipelineBuild.getProject().getFullName();
                  result = pipelineBuild.getCurrentBuildResult();
                  health = pipelineBuild.getProject().getBuildHealth().getIconUrl().replaceAll("\\.gif", "\\.png");
                  url = pipelineBuild.getProjectURL();
                  dependencies = new ArrayList<ProjectForm>();
                  LOGGER.fine("Querying dependencies for: "+project.getName());
                  for (final AbstractProject<?, ?> dependency : project.getDownstreamProjects()) {
                      final Collection<AbstractProject<?, ?>> forkedPath = new LinkedHashSet<AbstractProject<?, ?>>(parentPath);
                      LOGGER.fine("Dependency: "+dependency.getName());
                      LOGGER.fine("Dependency: "+dependency.getFullName());
                      if (forkedPath.add(dependency)) {
                          LOGGER.fine("Added dependency: "+dependency);
                          dependencies.add(new ProjectForm(dependency, forkedPath));
                      }
                  }
          

          At the same time, the project page does show a link to the downstream project, and the downstream project does show a link to the upstream.

          Martin d'Anjou added a comment - Instrumenting the plugin code, I am finding that getDownstreamProjects() does not return any project. I have added a logger to help me, and the logs inside the loop never print anything! private ProjectForm(final AbstractProject<?, ?> project, final Collection<AbstractProject<?, ?>> parentPath) { final PipelineBuild pipelineBuild = new PipelineBuild(project.getLastBuild(), project, null); name = pipelineBuild.getProject().getFullName(); result = pipelineBuild.getCurrentBuildResult(); health = pipelineBuild.getProject().getBuildHealth().getIconUrl().replaceAll("\\.gif", "\\.png"); url = pipelineBuild.getProjectURL(); dependencies = new ArrayList<ProjectForm>(); LOGGER.fine("Querying dependencies for: "+project.getName()); for (final AbstractProject<?, ?> dependency : project.getDownstreamProjects()) { final Collection<AbstractProject<?, ?>> forkedPath = new LinkedHashSet<AbstractProject<?, ?>>(parentPath); LOGGER.fine("Dependency: "+dependency.getName()); LOGGER.fine("Dependency: "+dependency.getFullName()); if (forkedPath.add(dependency)) { LOGGER.fine("Added dependency: "+dependency); dependencies.add(new ProjectForm(dependency, forkedPath)); } } At the same time, the project page does show a link to the downstream project, and the downstream project does show a link to the upstream.

            Unassigned Unassigned
            deepchip Martin d'Anjou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: