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

Option `showOnlyFailures` is dimissed with mutliple TapPublisher steps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • tap-plugin
    • None

      The showOnlyFailures Option is dismissed if multiple TapPublisher steps exist in a pipeline:

      pipeline {
          agent any
          stages {
              stage('Build') {
                  steps {
                      writeFile file: 'test1.tap', text: 'ok 1\nnot ok 2'
                      writeFile file: 'test2.tap', text: 'ok 1\nnot ok 2'
                  }
                  post {
                      always {
                          step $class: 'TapPublisher', testResults: 'test1.tap', showOnlyFailures: true, planRequired: false
                          step $class: 'TapPublisher', testResults: 'test2.tap', showOnlyFailures: true, planRequired: false
                      }
                  }
              }
          }
      }
      

      This pipeline serves for demonstration purposes only, in this simple case a single TapPublisher step could be used. Usually the two TapPublisher steps would be in seperate stages.

      It's expected that the "TAP Extended Test Results" would contain only failures, but they include all test cases.

            kinow Bruno P. Kinoshita
            d2weber Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: