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

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

XMLWordPrintable

    • 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.

       

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

              Created:
              Updated: