Jenkins管道和Robot Framework结果

Pav*_*nik 7 jenkins robotframework jenkins-pipeline

我必须实现一个Pipeline并尝试找到一种方法,如何在Jenkins Pipeline中发布Robot Framework结果.我发现了有关在Robotline中实现Robot Framework插件的多个问题,并且还发现了这个似乎是解决方案的问题.但是我尝试了这种方法,结果仍然缺失.

有没有解决方法或功能示例?

tea*_*nyl 7

[编辑反映成功的解决方法]

对问题跟踪器的评论显示了似乎有效的解决方法:

step([
    $class : 'RobotPublisher',
    outputPath : outputDirectory,
    outputFileName : "*.xml",
    disableArchiveOutput : false,
    passThreshold : 100,
    unstableThreshold: 95.0,
    otherFiles : "*.png",
])
Run Code Online (Sandbox Code Playgroud)

然而,机器人框架插件目前似乎并没有与管道完全兼容现在:https://issues.jenkins-ci.org/browse/JENKINS-34469

这在Jenkins生态系统中的许多插件中很常见,这些插件尚未更新,尚未与新的Jenkins管道兼容.如果你有足够的动力,你可以自己创建完全兼容性.

  • 我仅在这一步添加到管道中:`step([$ class:'RobotPublisher',disableArchiveOutput:false,logFileName:'log.html',otherFiles:',outputFileName:'output.xml',outputPath:'report /' ,passThreshold:100,reportFileName:'report.html',不稳定阈值:0]);`**我在每个构建的详细信息中都找到了“机器人测试摘要”,其中包含log.html和report.html的路径,这已经足够了对我来说。**还有一个带有图形的“机器人结果”按钮。 (2认同)