In your Jenkins job...enter the following in the script section and then run the job.
/path/to/script/killpostgres.sh Change /path/to/script to reflect your project directory. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varghese Renny Sent: Tuesday, June 26, 2012 9:05 AM To: jenkinsci-users@googlegroups.com Subject: Re: jenkins java.outofmemory:permGen space error Actually i am calling like bash -ex killpostgres.sh killpostgres.sh is in my project directory. sudo is inside the shell script sudo kill $pid