我正在使用RobotFramework编写测试,并通过Jenkins Pipeline执行测试。问题是流水线末端的测试结果总是被最后的测试结果覆盖。如何避免呢?
stage('test 1') {
steps {
sh '''
robot --nostatusrc --outputdir robot_reports
test1.robot
'''
}
}
stage('test 2') {
steps {
sh '''
robot --nostatusrc --outputdir robot_reports
test2.robot
'''
}
}
stage('Publish Robot results') {
steps {
script {
step([$class: 'RobotPublisher',
disableArchiveOutput: false,
logFileName: '**//log.html',
otherFiles: '',
outputFileName: '**//output.xml',
outputPath: 'robot_reports/',
passThreshold: 100,
reportFileName: '**//report.html',
unstableThreshold: 0]);
}
}
}