At the moment, if user looking at build page in UI, he sees
      "Subproject Builds" and then list of builds that were triggered by parametrized trigger plugin.
      Unfortunately it shows only builds that are already completed, and no information about blocked in progress jobs.

      I understand, this is because of limited availability information done by function

      build.getAction(BuildInfoExporterAction.class).getTriggeredBuilds()
      

      It should be possible to show also other triggered builds that are currently "in progress" by something similar to following code below in groovy:

      import hudson.plugins.parameterizedtrigger.BuildInfoExporterAction
      import hudson.plugins.parameterizedtrigger.SubProjectsAction
      
      bp=Jenkins.instance.getItem("dsl-project_pull-requests")
      bd=bp.getBuild("158")
      projects = []
      bp.transientActions.each { it ->
        if (it instanceof hudson.plugins.parameterizedtrigger.SubProjectsAction) {
          it.configs.each { cfg -> 
      	   projects.addAll(cfg.projects.tokenize(','))
          }
        }
      }
      builds = []
      projects.each { prj->
        be=Jenkins.instance.getItem(prj)
        be.getNewBuilds().each { nb ->
          nb.getCauses().each { c ->
            if ( c instanceof hudson.model.Cause.UpstreamCause) {
              if (c.upstreamProject == bp.name && c.upstreamBuild == bd.number) {
                 builds.add(nb)
              }
            }
          }
        }
      } 
      println builds
      
      println bd.getAction(BuildInfoExporterAction.class).getTriggeredBuilds()
      

      PS. sorry, I'm not very good in java programming, otherwise I'd do just pull request to improve
      getTriggeredBuilds() in hudson.plugins.parameterizedtrigger.BuildInfoExporterAction directly.

          [JENKINS-33834] improve display of subproject builds

          Kevin Yu added a comment - - edited

          I think it would be extremely useful to have a link to the downstream job that is in progress. My use case is that the each axis of a upstream matrix job triggers 200 downstream jobs with different parameter such as device models. Right now, there's no way for me to navigate from upstream job to find out the log of specific downstream job until the build is finished, unless I go to the downstream job and click through the 200 in progress jobs and find out based on parameter.

          Kevin Yu added a comment - - edited I think it would be extremely useful to have a link to the downstream job that is in progress. My use case is that the each axis of a upstream matrix job triggers 200 downstream jobs with different parameter such as device models. Right now, there's no way for me to navigate from upstream job to find out the log of specific downstream job until the build is finished, unless I go to the downstream job and click through the 200 in progress jobs and find out based on parameter.

            huybrechts huybrechts
            kad Alexander Kanevskiy
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: