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

First stage is always showing master as run node

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      First stage is always showing master as the node where the stage was executed.

      Reproducible with this script (and having a node tagged as my-tag):

      def n = 'my-tag'
      stage 'Checkout'
      node(n) {
          echo 'checkout'
      }
      
      stage 'Build'
      node(n) {
          echo 'build'
      }
      

        Attachments

          Issue Links

            Activity

            amuniz Antonio Muñiz created issue -
            amuniz Antonio Muñiz made changes -
            Field Original Value New Value
            Assignee Antonio Muñiz [ amuniz ]
            svanoort Sam Van Oort made changes -
            Assignee Sam Van Oort [ svanoort ]
            svanoort Sam Van Oort made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            svanoort Sam Van Oort made changes -
            Comment [ [~marcus_phi] We're well aware that the existing implementation does not handle every case correctly and you find this frustrating. It's being addressed by a completely new set of pipeline APIs and a full rewrite of the pipeline stage view internals to use them. This will yield the full and correct set of node labels for each stage, as well as providing future support for parallel handling in JENKINS-33185 (and use of block-scoped stages).

            This work is encapsulated in https://issues.jenkins-ci.org/browse/JENKINS-34038
            This depends on a new set of pipeline graph analysis APIs I am writing in https://github.com/jenkinsci/workflow-api-plugin/pull/2/files (1800 lines, and counting).

            If you'd like to see the fix sooner than I can deliver it when working full-time on this problem -- well, the code is open source. I'd certainly welcome your assistance with the aforementioned PR or a skeletal visitor implementation that collects this information (consuming the new APIs). ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-34570 [ JENKINS-34570 ]
            gquerret gquerret made changes -
            Link This issue is duplicated by JENKINS-35585 [ JENKINS-35585 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 169188 ] JNJira + In-Review [ 185694 ]
            svanoort Sam Van Oort made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Done [ 10000 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-634 (Web Link)" [ 18854 ]

              People

              • Assignee:
                svanoort Sam Van Oort
                Reporter:
                amuniz Antonio Muñiz
              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: