This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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.

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Douglas
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: