Made the shell script executable and referencing the shell script in jenkins using the WORKSPACE env var.