title: Scripted Jenkins pipeline, skip parallel part of stage
body: <p>I know that in a scripted jenkins pipeline I can use <code>Utils.markStageSkippedForConditional</code> to mark an entire stage as skipped, which gets the 'execution line' to dip around the stage in the Blue Ocean UI.</p>
  
  <p>But if I've got a stage that has parallel tasks under it, something like this:</p>
  
  <pre><code>stage('Stage 1') {
    parallel 'Task 1' : {
      node('requirements') {
        doTask1()
      }
    }, 'Task 2' : {
      when (mustDoTask2) { // this 'when' function calls Utils.markStageSkippedForConditional
        node('requirements') {
          doTask2()
        }
      }
    }
  }
  </code></pre>
  
  <p>Then the entire stage is marked as skipped (unsurprisingly I suppose given the Utils function name) and Blue Ocean renders the pipeline as never executing any of the parallel tasks (even though they do execute).</p>
  
  <p>So is there an alternative to <code>Utils.markStageSkippedForConditional</code> that I can use to just mark an individual parallel task as skipped?</p>
  
  <p>The alternative I've got at the moment is for the parallel tasks to check within the 'node' statement as to whether they should execute anything, which works but when you look at the pipeline in Blue Ocean it looks like those tasks are always executed, which isn't ideal.</p>