背景
厂内的CI系统把 Jenkins 和Github 连接了起来,这样Dev 只要通过github pr 就能够了解到测试job 运行的情况。有的时候,Dev会找到QA问,如何在Jenkins CI 里面调试代码,所以就有了这篇说明
步骤
Open job url
Open console log to find which slave runs this job and where is the workspace
login the slave machine and go to the workspace
Set the breakpoint
For Python, usuallyimport pdb; pdb.set_trace()- Run the test
本文介绍了如何在Jenkins环境中调试Python代码的具体步骤。通过连接Github,开发者可以追踪测试作业的状态,并利用特定命令在Jenkins中设置断点,实现代码调试。
2774

被折叠的 条评论
为什么被折叠?



