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

Pipeline stages display garbage when skipped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • CentOS 7.5, Jenkins ver. 2.153

      Given a stage

      stage("Deploy") {
        when {
          allOf {
            expression { "$DEPLOYABLE_BRANCH".toBoolean() }
            expression { sh(script: "$GRADLE_CMD -q tasks --all | grep -q -w deploy", returnStatus: true) == 0 }
          }
        }
        steps {
          sh "$GRADLE_CMD deploy"
        }
      }
       

      When the stage is skipped, pipeline views shows garbage text instead of time (see attachment). Instead, it should indicate that the stage is skipped.

            Unassigned Unassigned
            asarkar Abhijit Sarkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: