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

null parallelStartNode in StandardChunkVisitor.parallelBranchStart()

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      With nested parallel branch, parallelStartNode is passed as null. Its supposed to be non-null value, this behavior has consequence of causing NPE.

      public void parallelBranchStart(@Nonnull FlowNode parallelStartNode, @Nonnull FlowNode branchStartNode, @Nonnull ForkScanner scanner) {}
      
      node {
         stage ('test') { 
           echo ('Testing'); 
           parallel nestedBranch: {
             echo 'nested Branch'
             stage('nestedBranchStage') {
               echo 'running nestedBranchStage'
               parallel secondLevelNestedBranch1: {
                 echo 'secondLevelNestedBranch1'
               }
             }
           },
          failFast: false
         } 
      }
      

        Attachments

          Issue Links

            Activity

            vivek Vivek Pandey created issue -
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Labels blueocean
            jamesdumay James Dumay made changes -
            Description With nested parallel branch, parallelStartNode is passed as null. Its supposed to be non-null value, this behavior has consequence of causing NPE.

            {code}
            public void parallelBranchStart(@Nonnull FlowNode parallelStartNode, @Nonnull FlowNode branchStartNode, @Nonnull ForkScanner scanner) {}

            {code}
            node {
               stage ('test') {
                 echo ('Testing');
                 parallel nestedBranch: {
                   echo 'nested Branch'
                   stage('nestedBranchStage') {
                     echo 'running nestedBranchStage'
                     parallel secondLevelNestedBranch1: {
                       echo 'secondLevelNestedBranch1'
                     }
                   }
                 },
                failFast: false
               }
            }
            {code}

            {code}
            With nested parallel branch, parallelStartNode is passed as null. Its supposed to be non-null value, this behavior has consequence of causing NPE.

            {code}
            public void parallelBranchStart(@Nonnull FlowNode parallelStartNode, @Nonnull FlowNode branchStartNode, @Nonnull ForkScanner scanner) {}
            {code}

            {code}
            node {
               stage ('test') {
                 echo ('Testing');
                 parallel nestedBranch: {
                   echo 'nested Branch'
                   stage('nestedBranchStage') {
                     echo 'running nestedBranchStage'
                     parallel secondLevelNestedBranch1: {
                       echo 'secondLevelNestedBranch1'
                     }
                   }
                 },
                failFast: false
               }
            }
            {code}
            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 -
            Status In Progress [ 3 ] In Review [ 10005 ]
            svanoort Sam Van Oort made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Closed [ 6 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1690 (Web Link)" [ 18611 ]

              People

              Assignee:
              svanoort Sam Van Oort
              Reporter:
              vivek Vivek Pandey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: