I'm new to python, please help on this requirement.
I wrote a simple python script to execute on Jenkins pipeline.
calling bat script on Jenkins
bat 'test.py'
test.py has:
maybe this basic question, Please help me.
I'm expecting result on Jenkins console is:
I wrote a simple python script to execute on Jenkins pipeline.
calling bat script on Jenkins
bat 'test.py'
test.py has:
import os cmd1 = my_command1 cmd2 = my_command2 print(cmd1) os.system(cmd1) print(cmd2) os.system(cmd2)output on Jenkins console:
Output:cmd1 executes
cmd2 executes
print of cmd1
print of cmd2
Issue: print commands output shows always on end results. not an order write in a script. maybe this basic question, Please help me.
I'm expecting result on Jenkins console is:
Output:print of cmd1
cmd1 executes
print of cmd2
cmd2 executes