|
Python pexpect process wrapped in a python script always timeout on lengthy process when running it via Jenkins (under "Execute Shell"). The same script successfully ran when directly running it on console terminal. Can Jenkins shell can be run under pseudo terminal slave (pts/N)?
Python script as run as below python python-script.py --param1=<value> --param2=<value>
Python pexpect process was instantiated in python-script.py
Monitoring the process (Manual run vs. Jenkins run) Jenkins run (Script did NOT run OK) UID PID PPID C STIME TTY TIME CMD root 11909 31184 0 21:52 ? 00:00:00 /bin/sh -xe /tmp/hudson2869108017601047728.sh
Manual Run (Script ran OK) root 2356 18925 0 21:00 pts/0 00:00:01 /bin/sh -xe /tmp/hudson2869108017601047728.sh
|