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

null parallelStartNode in StandardChunkVisitor.parallelBranchStart()

      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
         } 
      }
      

          [JENKINS-39841] null parallelStartNode in StandardChunkVisitor.parallelBranchStart()

          Vivek Pandey created issue -
          James Dumay made changes -
          Labels New: blueocean
          James Dumay made changes -
          Description Original: 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}
          New: 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}
          Sam Van Oort made changes -
          Assignee New: Sam Van Oort [ svanoort ]
          Sam Van Oort made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Sam Van Oort made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Sam Van Oort made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Closed [ 6 ]
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal OSS-1690 (Web Link)" [ 18611 ]

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

              Created:
              Updated:
              Resolved: