首页 > 其他分享 >Jenkins 问题汇总

Jenkins 问题汇总

时间:2022-11-24 20:01:23浏览次数:35  
标签:Maven git repository requested xxx 汇总 问题 Jenkins

1. 未安装 Maven

ERROR: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist.
Finished: FAILURE

解决办法:安装Maven

2. 用 SSH 凭证方式连接 Git 失败

Failed to connect to repository : Command "git ls-remote -h -- [email protected]:xxx/xxx.git HEAD" returned status code 128:
stdout:
stderr: No ECDSA host key is known for github.com and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

原因:首次连接可能会出现此错误

解决办法:Dashboard > Manage Jenkins > Config Global Security  修改验证策略为 Accpt first connection

标签:Maven,git,repository,requested,xxx,汇总,问题,Jenkins
From: https://www.cnblogs.com/-ori/p/16919753.html

相关文章