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

No tooltips / image map generated on a graph when one of the previous builds failed before publishing TAP data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • tap-plugin
    • None
    • jenkins 2.18
      tap-plugin 2.0

      When one of the builds in a history has failed before any TAP data was published, the graph displayed on a project page will then not contain image map and tooltips.

      To reproduce:

      • Create workflow job
      • Configure pipeline script as follows:

        node {
        stage "unit tests"
        sh"""#!/usr/bin/env bash
        SECONDS=`date "+%S"`
        MOD=\$((SECONDS % 2))

        if [[ \$MOD == 0 ]]; then

        cat > sample.tap <<EOF
        1..3
        ok 1 sample First ok
        ok 2 sample Second passed
        ok 3 sample This passed # SKIP error in test 2
        not ok 4 some failed test
        error message from test
        EOF
        else
        exit 1
        fi
        """
        step([
        $class : "TapPublisher",
        testResults : "**/sample.tap",
        failIfNoResults: false
        ])
        }

      • Run job for a few times until failed build encounters.
      • On a job page, you'll see the graph generated.
      • The tooltips and image (click) map is however missing.

            kinow Bruno P. Kinoshita
            anenviousguest Vladislav Ponomarev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: