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