I have a jenkinsfile from which I am autodeploying a play framework application. To kill the current pid on the server I use the following command:
sudo kill $(cat /var/www/myProject/PLAY.pid)
I've tried escaping the dollar sign as suggested without success. The Jenkins log returns
Kill: command not found
Is this a syntactical error or is there a problem invoking 'kill' from Jenkins on ubuntu 18.04?...
I can't see any documentation on the Play Framework website for starting and stopping packaged binaries using an automated shell script.