Newer versions of the xdist plugin set pipeline information like parallel branch and stage into the test name itself (I believe as of https://issues.jenkins-ci.org/browse/JENKINS-45826).
This is helpful in some cases, but can cause problems:
- upgrading from an older version breaks test history (since its name has changed)
- in situations where branch isn't relevant to the results (eg parallelizing a test suite with dynamically-named branches) it's difficult to visually group failing tests, since they're broken up by branch name
So, I'd like to disable this behavior, but as far as I can tell it can't currently be done. Using step([$class: 'XUnitPublisher' instead of xunit([... is close, but also seems to cause race conditions such as:
Interestingly, this naming behavior only happens on one of two of our Jenkins instances, despite the core + plugin versions all matching, running identical pipeline code, and processing identical xml. I'm not sure why that'd be.