Jenkins 管道和机器人框架结果

标签 jenkins robotframework jenkins-pipeline

我必须实现一个流水线并试图找到一种方法,如何在 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/

相关文章:

testing - 否定机器人框架中的测试结果

testing - 在机器人框架中以毫秒为单位获取时间的关键字是什么?

docker - Jenkins 管道 docker 代理 - docker 运行错误 - 无法运行图像 - java.io.IOException

maven - 如何在 Jenkins 中使用 maven 从多个套件中运行特定的 TestNG 套件

maven - Jenkins控制台未显示在Docker容器上运行的命令的输出

jenkins - Jenkins 下的 MSTest 编码 UI 测试失败

python - 在robot framework中申请loop后,报错如下- Keyword name cannot be empty

Jenkins 管道里程碑不会取消之前正在进行的构建

docker - Jenkins:从与代理(另一个 Docker 容器)一起运行的阶段连接到 Docker 容器

java - 如何使用 Jenkins 参数化构建?