Jenkins git polling log error with code 128

环境

  • 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协议,这样就不需要密码(推荐)
参考文档
最近的文章

Restricting IP addresses for Jetty and Solr

环境 Solr6.3.0 (jetty-server-9.3.8.v20160314) Solr6.6.0 (jetty-server-9.3.14.v20161028) Solr默认外网直接可以通过8983端口访问, Solr限制访问的ip为127.0.0.1, 这样外网ip可以访问8983端口,但是api访问,response http code 都是403, jetty xml配置语法参考Jetty IoC XML format Solr6.3.0 修改$solr...…

继续阅读
更早的文章

IntelliJ IDEA with JRebel

环境IntelliJ-IDEA 2017.1JRabel IntelliJ-IDEA plugin 7.0.7JDK8IntelliJ IDEA 中 使用JRebel plugin 到 jreble 注册账号, 根据提示得到License code 在 IntelliJ IDEA 安装 JRebel plugin, 用上面的license code激活 在 IntelliJ IDEA settings 里面找到 compiler , enable “Buld project auto...…

继续阅读