for (x = 0; x < 5; x++) {
try {
step([$class: 'XUnitPublisher', testTimeMargin: '3000', thresholdMode: 1, thresholds: [[$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '0'], [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '']], tools: [[$class: 'GoogleTestType', deleteOutputFiles: true, failIfNotNew: false, pattern: "_results/*/${config}/${arch}/tests/gtest*.xml", skipNoTestFiles: true, stopProcessingIfError: true]]])
break
} catch (any) { // XUnit fails on Win10, try again!
echo "XUnit crashed, trying again!"
sleep(5)
}
}...
12:08:16 [xUnit] [INFO] - Starting to record.
12:08:16 [xUnit] [INFO] - Processing GoogleTest-1.6
12:08:16 [xUnit] [INFO] - [GoogleTest-1.6] - 11 test report file(s) were found with the pattern '_results/*/release/x64/tests/gtest*.xml' relative to 'c:\jenkins\workspace\pipeline_component_2' for the testing framework 'GoogleTest-1.6'.
12:08:21 [xUnit] [ERROR] - The plugin hasn't been performed correctly: remote file operation failed: c:\jenkins\workspace\pipeline_component_2 at hudson.remoting.Channel@4ef7f3ea:HOSTNAME: java.io.StreamCorruptedException: invalid type code: 43
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: FAILURE