首先保证系统中已经安装了jdk
官网下载地址:http://mirrors.jenkins.io/war-stable/latest/jenkins.war 尽量安装最新版本的稳定版本,否则有些插件会安装失败 目前版本 2.164.3
启动tomcat,浏览输入localhost:8080/jenkins
kenkins密码
~/.jenkins/secrets/initialAdminPassword
选择对应的组件
ldap 配置
系统设置->全局安全配置->ldap
Server: localhost:389
root DN: dc=luoye,dc=site
User search base: ou=people
User search filter: uid={0}
Group search base: ou=group
Group search filter: (|(cn={0})(memberUid={0}))
Group membership: Search for LDAP groups containing user Group membership filter ""
Manager DN : cn=manager,dc=luoye,dc=site
Manager Password: 123456
Display Name LDAP attribute: givenName
Email Address LDAP attribute: mail
选择安全矩阵 分配权限即可