背景

厂内的CI系统把 Jenkins 和Github 连接了起来,这样Dev 只要通过github pr 就能够了解到测试job 运行的情况。有的时候,Dev会找到QA问,如何在Jenkins CI 里面调试代码,所以就有了这篇小指导

步骤

  1. Open job url
    如何在Jenkins CI 里调试

  2. Open console log to find which slave runs this job and where is the workspace
    如何在Jenkins CI 里调试

  3. login the slave machine and go to the workspace

  4. Set the breakpoint. For python, usually
     

    import pdb; pdb.set_trace()

     

  5. Run the test

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2021-09-03
  • 2021-05-11
  • 2021-08-21
  • 2021-08-31
  • 2021-04-17
  • 2021-09-12
猜你喜欢
  • 2021-12-20
  • 2022-03-06
  • 2021-09-21
  • 2021-07-03
  • 2021-11-30
  • 2021-11-13
相关资源
相似解决方案