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

jenkins pipeline parallel console log overline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • None

      Pipeline Library: (It is a job that batch executes jobs.)
      def call(TaskService ts, Integer maxParallel, Map executeStatus) {
      def actionManifests = new ConcurrentLinkedDeque(ts.actions)

      def actionController = {
      def action = [:]
      def actionManifest

      while(true) {

      try

      { actionManifest = actionManifests.pop() }

      catch (NoSuchElementException e)

      { break }

      try

      { build([ propagate: true, job: actionManifest.action_name, parameters: [ string(name: 'INPUT', value: action.input), ] ]) executeStatus.successful++ }

      catch(Exception e)

      { executeStatus.failed++ }

      println "END => ${actionManifest.name}(${actionManifest.order_num})"
      }
      }

      def parallelActionPool = [:]
      maxParallel.times

      { parallelActionPool[it] = actionController }

      parallel parallelActionPool
      }

      Logs are overlapping on one line.

      View as plain text

            Unassigned Unassigned
            epoch li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: