Jenkins console output not in realtime

后端 未结 9 1117
失恋的感觉
失恋的感觉 2020-12-13 06:14

Pretty new to Jenkins and I have simple yet annoying problem. When I run job (Build) on Jenkins I am triggering ruby command to execute my test script.

Problem is Je

9条回答
  •  粉色の甜心
    2020-12-13 06:45

    Make sure your script is flushing its stdout and stderr. In my case I had a buffering issue similar to what you describe but I was using python. The following python code fixed it for me:

    import sys
    sys.stdout.flush()
    

    I'm not a Ruby coder, but Google reveals the following:

    $stdout.flush
    

提交回复
热议问题