广告

安装Jenkins镜像+运行Jenkins容器+Publish Over SSH插件+Generic Webhook Trigger插件

1.链接linux系统,下载安装Jenkins镜像,并运行Jenkins容器:
docker run –name jenkins -d -p 8090:8080 jenkins

2.查看容器ID:
docker ps

查看日志: docker logs [镜像ID]
从下面的日志中找到默认密码,复制

3.访问:http://[IP地址]:8090,可以看到如下界面(如果你看到的界面和下面的图片不一样,没有密码输入框,请换用谷歌浏览器重试):
点击”Continue”按钮:
等待安装成功后,设置用户账户信息,然后点击”Save and Finish”按钮,接着点击“Start using Jenkins”,进入Jenkins欢迎页面,看到如下界面,说明安装成功:
4.安装Generic Webhook Trigger插件(钩子功能是帮助用户push了代码后,自动回调一个您设定的http地址,通过脚本实现自动部署,关于“码云”WebHooks的介绍及使用请参考:http://git.mydoc.io/?t=154711):
在“系统设置–插件管理–可选插件”界面搜索:Generic Webhook Trigger,可以看到,点击安装,然后重启。

广告
赞赏

微信赞赏支付宝赞赏

2 thoughts on “安装Jenkins镜像+运行Jenkins容器+Publish Over SSH插件+Generic Webhook Trigger插件

  1. Does your site have a contact page? I’m having problems locating it but, I’d like to
    shoot you an email. I’ve got some ideas for your blog you might be interested in hearing.
    Either way, great website and I look forward to
    seeing it grow over time. http://jx.d4697s.e.s.o.jg7.9.5sg.updhavi.blog.gewinnspiele.es/php.php?a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Fgrsultracelldefense.net%2F%3EGRS+Ultra+Cell+Defense%3C%2Fa%3E

发表评论

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d 博主赞过: