1、为jenkins添加git插件 在Available tab页中找到Git,点击下方的Install without Restart安装插件。 2、在jenkins中配置Git.exe的位置,设置完成后保存 3、新建任务