环境
- Jenkins 1.x ,2.x
- git 2.11
git远程仓库有新的commit ,但是jenkins不能触发自动编译, 但是手动点击编译是可以的
- git 仓库配置是https协议的,用户名和密码直接写带url上面
- jenkins git Poll SCM 配置
H H/1 * * *
- Git Polling Log
git.exe -c core.askpass=true ls-remote -h https://useranme@bitbucket.org/test/demo.git 128 错误
解决办法
- 如果git仓库是https协议,通过设置下面的git命令,让git记住用户名和密码
git config --global credential.helper store
- 或者使用ssh协议,这样就不需要密码(推荐)