简体   繁体   English

如何使用python-jenkins获取詹金斯工作的测试报告

[英]How to get the test report of a job in Jenkins using python-jenkins

We have commands to get last_build_number , get_build_console_output , build_job_url etc with python_jenkins . 我们有命令得到last_build_numberget_build_console_outputbuild_job_url等与python_jenkins But, I want to fetch the url of the latest successful build a jenkins job that executes selenium test. 但是,我想获取最新成功构建的执行硒测试的詹金斯工作的url。 Is there any way to get it with either python-jenkins or any other method. 有没有办法用python-jenkins或任何其他方法来获取它。 Please share it to me. 请分享给我。

Thanks in advance 提前致谢

See this example for getting next build number. 请参阅此示例以获取下一个内部版本号。 You need to replace nexBuildNumber with lastSuccessfulBuild 您需要使用lastSuccessfulBuild替换nexBuildNumber

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM