I have a script that calls a subscript and attempts to release/disown this script so that Jenkins calling the script can complete successfully. It seems to release the script on the command line, so I can log out or execute other scripts when on the command line (SSH), but Jenkins hangs waiting for the released script to finish. Is there a way around it?
#!/bin/bash /home/oracle/example/subscr.sh>temp-log.log</dev/null& disown -h echo "Done" exit 0
#!/bin/bash while [ false ]; do echo "Still Working" sleep "5s" done
When doing this, Jenkins just hangs endlessly until I kill the subscr execution.