Jenkins console output not in realtime

后端 未结 9 1178
失恋的感觉
失恋的感觉 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:42

    For some commands, including tee a the best choice for unbuffering is a program called unbuffer from expect package.

    Usage example:

    instead of

    somecommand | tee /some/path

    do

    somecommand | unbuffer -p tee /some/path

    Sources and more info:

    • https://stackoverflow.com/a/11337310/2693875
    • https://unix.stackexchange.com/a/25375/53245

提交回复
热议问题