ubuntu18.04配置jenkins时错误:fatal: Authentication failed for 'https://gitee.com/***/***.git/'解决办法
在ubuntu18.04配置jenkins任务时,需要从gitee中获取项目文件,报错:
错误原因 :git权限错误,也就是说git的用户名密码错误。
这是因为在jenkins在安装时,默认的用户是jenkins。而没有输入自己在gitee上的帐户信息造成的。
Failed to connect to repository : Command "git ls-remote -h -- https://gitee.com/***/***.git HEAD" returned status code 128:
stdout:
stderr: remote: [31mIncorrect username or password ( access token )[0m
fatal: Authentication failed for 'https://gitee.com/***/***.git/'
解决办法:重新配置git的用户名和密码:
添加成功后:
在任务设置中,再次输入gitee仓库的地址:https://gitee.com/***/***.git,然后选择用户xjzdr时,就不报错了、。