question:
When using Jenkins shell command
to execute a python script, you will always wait for the script to be executed, and then print
print out the statements in the script at once;
Solution:
Adding it after print
the statement sys.stdout.flush()
can achieve the purpose of real-time output.