repo问题:
... A new repo command ( 2.0) is available.
... You should upgrade soon:
cp /home/miot/test/miconnect/.repo/repo/repo /bin/repo
fatal: git 2.10.2 or later required
执行更换repo后出现下面
更新git到最新版本:
https://www.cnblogs.com/jhxxb/p/10571227.html
然后repo init在普通centos用户下就不会有问题了,
但我们用的是jenkins用户,发现在/etc/profile文件里加上git的目录,jenkins编译时依然找不到git
然后需要在jenkins的系统设置页面加上git程序位置,如下:
系统管理->系统设置->全局属性->环境变量:添加PATH的追加