我有一个Jenkins 2.0 Pipeline脚本,它运行两个独立的Robot测试套件.该脚本尝试发布两个测试套件结果,但是发布者使用最后一个发布覆盖了第一个发布.
node('robot') {
...
publishTestResults('journey')
publishTestResults('regression')
}
void publishTestResults(String type) {
step([
$class : 'hudson.plugins.robot.RobotPublisher',
outputPath : 'portfolio-app\\target\\robot-output\\' + type,
passThreshold : 100,
unstableThreshold: 100,
otherFiles : '',
reportFileName : '*\\report*.html',
logFileName : '*\\log*.html',
outputFileName : '*\\output*.xml'
])
Run Code Online (Sandbox Code Playgroud)
}
在UI中,我们看到两个已发布的结果,但这两个集都是针对regression测试用例的.最后一次发布获胜.
有什么方法可以发布两组Robot结果.