in Window :
Jekins module: pip install jenkinsapi

Exel module: pip install XlsxWriter
1.要到pip.exe 所在目錄 或者在Path設置環境變量

2.然后執行 pip install XlsxWriter

可能遇到的問題:
1.ImportError: No module named XlsxWriter
Solution: So it turns out the issue was because I was using python with ArcGIS and didn't realize there were two version of python. When I ran a sample program using Python in the Python27 folder it worked, so I just had to copy over the installed site-packages to the ArcGIS version of python as well and everything worked.
