-
Bug
-
Resolution: Fixed
-
Minor
-
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.