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

Parallel stage with when shown as ran, but it haven't

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Last version Jenkins with blue ocean

       

      Those steps are shown as ran, but it haven't. Clicking them just says "this stage has no steps"

      This only occurs when a previous stage has failed.

      stage('Deploy release') {
      environment{
      ARTIFACT_VERSION = xxx
      }
      when {
      anyOf {
      branch 'RC'
      branch 'HOTFIX_*'
      branch 'HOTFIX-*'
      }
      }
      parallel{
      stage('Deploy to RC') {
      when {
      anyOf {
      branch 'RC'
      branch 'HOTFIX_*'
      branch 'HOTFIX-*'
      }
      }
      steps {
      deploy(xxx)
      }
      }
      
      stage('Deploy to CERT') {
      when {
      anyOf {
      branch 'RC'
      branch 'HOTFIX_*'
      branch 'HOTFIX-*'
      }
      }
      steps {
      deploy(xxx)
      }
      }
      }
      

       I've added "when" everywhere to try to fix it, but it doesn't work. It's clearly using the condition since it doesn't run the deploy script. The error seems to be only in the GUI

      This code is in a shared library, I'm not sure if that could be the reason of the error.

       

          [JENKINS-50150] Parallel stage with when shown as ran, but it haven't

          Leandro Narosky created issue -
          Leandro Narosky made changes -
          Description Original: !image-2018-03-13-12-14-21-339.png!

           

          Those steps are shown as ran, but it haven't. Clicking them just says "this stage has no steps"
          {code:java}
          stage('Deploy release') {
          environment{
          ARTIFACT_VERSION = xxx
          }
          when {
          anyOf {
          branch 'RC'
          branch 'HOTFIX_*'
          branch 'HOTFIX-*'
          }
          }
          parallel{
          stage('Deploy to RC') {
          when {
          anyOf {
          branch 'RC'
          branch 'HOTFIX_*'
          branch 'HOTFIX-*'
          }
          }
          steps {
          deploy(xxx)
          }
          }

          stage('Deploy to CERT') {
          when {
          anyOf {
          branch 'RC'
          branch 'HOTFIX_*'
          branch 'HOTFIX-*'
          }
          }
          steps {
          deploy(xxx)
          }
          }
          }
          {code}
           I've added "when" everywhere to try to fix it, but it doesn't work. It's clearly using the condition since it doesn't run the deploy script. The error seems to be only in the GUI

          This code is in a shared library, I'm not sure if that could be the reason of the error.

           
          New: !image-2018-03-13-12-14-21-339.png!

           

          Those steps are shown as ran, but it haven't. Clicking them just says "this stage has no steps"

          This only occurs when a previous stage has failed.
          {code:java}
          stage('Deploy release') {
          environment{
          ARTIFACT_VERSION = xxx
          }
          when {
          anyOf {
          branch 'RC'
          branch 'HOTFIX_*'
          branch 'HOTFIX-*'
          }
          }
          parallel{
          stage('Deploy to RC') {
          when {
          anyOf {
          branch 'RC'
          branch 'HOTFIX_*'
          branch 'HOTFIX-*'
          }
          }
          steps {
          deploy(xxx)
          }
          }

          stage('Deploy to CERT') {
          when {
          anyOf {
          branch 'RC'
          branch 'HOTFIX_*'
          branch 'HOTFIX-*'
          }
          }
          steps {
          deploy(xxx)
          }
          }
          }
          {code}
           I've added "when" everywhere to try to fix it, but it doesn't work. It's clearly using the condition since it doesn't run the deploy script. The error seems to be only in the GUI

          This code is in a shared library, I'm not sure if that could be the reason of the error.

           
          Leandro Narosky made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

            Unassigned Unassigned
            leoxs22 Leandro Narosky
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: