removed the sleep with tail -f loop to wait until jenkins is started