码迷,mamicode.com
首页 > 其他好文 > 详细

Jenkins学习

时间:2015-01-16 16:21:48      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:

1. 新建Mac Slave Node

Manage Jenkins > Manage Nodes > New Node

设置name并勾选Dumb Slave

技术分享

 

2. 设置权限

Manage Jenkins > Setup Security

技术分享

勾选Enable security,记得勾选Allow users to sign up,这是为了添加账户,添加完毕后用有admin权限的账户再关掉。

如果忘记了就到C:\Users\haliu\.jenkins\config.xml中删除一下内容,然后重启Jenkins。

<useSecurity>true</useSecurity>
<authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy">
    ...
    ...
</authorizationStrategy>
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
    <disableSignup>true</disableSignup>
    <enableCaptcha>false</enableCaptcha>
</securityRealm>

设置完成后如下图。

技术分享

如果密码忘记了,可以在C:\Users\haliu\.jenkins\users中找到对应的登陆用户文件夹,里面有个config.xml,把<passwordHash>里的内容换成#jbcrypt:$2a$10$DdaWzN64JgUtLdvxWIflcuQu2fgrrMSAMabF5TSrGK5nXitqK9ZMS,重启Jenkins后该账户的密码就变成111111了。如果要改成特定的密码,直接新建个用户再拷贝<passwordHash>里的内容就行了。

 

Jenkins学习

标签:

原文地址:http://www.cnblogs.com/RussellWestbrook/p/4228735.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!