Git told you what is wrong, you haven't setup your user.email or user.name. And it told you how to fix that. I'm guessing you usually run git under your own user id, but jenkins is running as a different user id that hasn't been setup. Login as jenkins' user on the machine running jenkins, get it to work from the command line as that user, then you should be in a better position to have it work under jenkins.