If I understand correctly, you can do that using series of shell commands. Just see the Build menu under Pipeline configure option, select "Execute Shell" option and change the directory and give commands to execute after pulling code from Git. No need to tinker with Jenkins file at all!