Please suggest an approach to overcome this blockage...
My setup involves master slave configuration where Appium server is located in MACosx (slave machine) and all the tests are in the same machine
I have written shell script for appium to run in background but if i invoke the script through terminal it works fine and even if I close the terminal the server still runs in background (that's what I needed )
nohup ./appium.sh >/dev/null &
But, If I invoke appium script through Jenkins in execute shell section it runs and kills the background process with in no time because of that my Gradle tests are failing I want appium to be in background.
nohup ./appium.sh >/dev/null &
Even I tried with ssh myname@serverIP nohup ./appium.sh >>/dev/null & # no luck
I tried to see log result it displaying nothing nohup ./appium.sh >>$workspace/script.log &