Question: mvn' is not recognized as an internal or external command from jenkins?
Answer: In Jenkins you have "build environment" section (under "Configure", of course). There you have "Properties Content", and there you should add M2 and M2_HOME as well. This might be one of root cause, Might be your Jenkins not recognizing your MAVEN path which is saved in windows environment variable.