jenkins自动构建到harbor
时间: 2023-08-24 08:05:35 浏览: 96
jenkins自动化构建
回答: 要实现Jenkins自动构建到Harbor仓库,需要进行以下步骤。首先,在Habor上创建gcgj仓库后才能push dockertaggcgj/portal:latest192.168.13.45/gcgj/portal dockerlogin-padmin-uCmcc@1ot-e172.19.2.139 dockerpush192.168.13.45/gcgj/portal。其次,为Jenkins添加Docker插件并安装,在项目test1的配置中增加构建后的步骤。然后,启动Harbor仓库,并在Jenkins主机上配置Docker CE源。最后,在ser6上做Harbor仓库的解析。请注意,在进行这些步骤之前,需要确保实验环境中的几台主机的selinux和firewalld已经关闭。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [jenkins触发式自动构建docker镜像上传至harbor并发布](https://blog.csdn.net/weixin_33785108/article/details/91592948)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [CI/CD工具Jenkins学习(二) (使用 jenkins自动构建docker镜像,并上传至harbor仓库)](https://blog.csdn.net/weixin_45649763/article/details/106313107)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文