我必须实现一个流水线并试图找到一种方法,如何在 Jenkins 流水线中发布机器人框架结果。
我找到了 multiple questions关于在流水线中实现 Robot Framework 插件,还发现了 this question这似乎是解决方案。但是我已经尝试过这种方法,但结果仍然缺失。
是否有任何解决方法或功能示例?
最佳答案
[编辑以反射(reflect)成功的解决方法]
This comment on the issue tracker shows a workaround that seems to work :
step([
$class : 'RobotPublisher',
outputPath : outputDirectory,
outputFileName : "*.xml",
disableArchiveOutput : false,
passThreshold : 100,
unstableThreshold: 95.0,
otherFiles : "*.png",
])
然而,Robot Framework Plugin 目前似乎并不完全兼容 Pipeline:https://issues.jenkins-ci.org/browse/JENKINS-34469
这在 many plugins 中很常见目前在 Jenkins 生态系统中尚未更新以与新的 Jenkins Pipeline 兼容。 You could potentially create the full compatibility yourself though ,如果你有足够的动力。
关于Jenkins 管道和机器人框架结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45547322/