Moving jenkins code to shell script