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

Build has been executing for null in Build-flow jobs

XMLWordPrintable

      If the user makes a flow that has a N jobs in parallel (N given by another job, or param), the main job cant calculate the time that the actual build has been executing.

      Example:

      def jobB= {
      tests= parallel(
      (0..lastPos).collect { ctr >
      return {
      ignore(UNSTABLE)

      { ejec= build ( "JOB_TEST", params like array[ctr]...) }


      }
      }
      )
      }

      //we launch the builds
      def job2= { [ jobA, jobB ].each

      {it()}

      }
      parallel(job1, job2)
      }

      this example launchs job1 and job2 in parallel, and job2 triggers jobA, and then N builds of jobB, where N is the size of an array.

      the schema of the job is attached as a image
      If we have this example, when the main job is running, we hover the mouse in the loading bar of the job we can see "Build has been executing for null"

            Unassigned Unassigned
            robgon Roberto González
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: