Jenkins构建异常系列
-
构建启动页面异常提示
已返回默认值 没有在 SCM 配置或者插件中的 Git 存储库配置错误 选项"使用仓库"设置为: "http://git........com.cn/..../duty-record.git" 请检查配置
- 在构建流程的Git参数配置中,选择:高级 — 已选仓库:因为复制粘贴出现了特殊符号,将地址删除,手动输入。
-
启动构建失败。
ERROR: Error fetching remote repo 'origin' ....... stderr: fatal: protocol 'http' is not supported
- 在
git_address
中:因为复制粘贴出现了特殊符号,将地址删除,自己再输一遍就 ok。
- 在
-
各种timeout=10
- 排查配置无误,是应用管理那边缺少安装AnsiColor插件。
git --version # timeout=10 git ls-remote -h -- http://git........com.cn/devops/jenkins_library.git # timeout=10 git config core.sparsecheckout # timeout=10 git rev-list --no-walk 3407f589ea690a.8762...69d294c760efe1d317 # timeout=10
-
前端编译失败:
- 需修改前端流水线配置文件
pipelineCfg.json
的
"makeCommand": "npm i ui@latest -S --registry=http://........com.cn/repository/npm-public && npm config set registry https://registry.npm.taobao.org && npm install && npm run build:prod",//编译命令
- 需修改前端流水线配置文件
-
配置webhook远程触发异常:连接失败。
- 配置教程有缺少,需要在jinkens的配置 --构建触发器 – 勾选Generic Webhook Trigger – Token填写git上的Settings — Webhooks — url上的jenkins任务名称。
欢迎关注公众号:有点建树,做更多交流。