1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 -rw-r--r-- 1 jenkins jenkins 1592 Feb 27 09:14 config.xml
-rw-r--r-- 1 jenkins jenkins 159 Feb 27 09:14 hudson.model.UpdateCenter.xml
-rw-r--r-- 1 jenkins jenkins 370 Feb 27 09:19 hudson.plugins.git.GitTool.xml
-rw------- 1 jenkins jenkins 1712 Feb 27 09:14 identity.key.enc
-rw-r--r-- 1 jenkins jenkins 4 Feb 27 09:24 jenkins.install.InstallUtil.lastExecVersion
-rw-r--r-- 1 jenkins jenkins 4 Feb 27 09:24 jenkins.install.UpgradeWizard.state
drwxr-xr-x 2 jenkins jenkins 4096 Feb 27 09:14 jobs
drwxr-xr-x 3 jenkins jenkins 4096 Feb 27 09:14 logs
-rw-r--r-- 1 jenkins jenkins 907 Feb 27 09:14 nodeMonitors.xml
drwxr-xr-x 2 jenkins jenkins 4096 Feb 27 09:14 nodes
drwxr-xr-x 72 jenkins jenkins 12288 Feb 27 09:20 plugins
-rw-r--r-- 1 jenkins jenkins 64 Feb 27 09:14 secret.key
-rw-r--r-- 1 jenkins jenkins 0 Feb 27 09:14 secret.key.not-so-secret
drwx------ 4 jenkins jenkins 4096 Feb 27 09:24 secrets
drwxr-xr-x 2 jenkins jenkins 4096 Feb 27 09:19 updates
drwxr-xr-x 2 jenkins jenkins 4096 Feb 27 09:14 userContent
drwxr-xr-x 3 jenkins jenkins 4096 Feb 27 09:24 users
drwxr-xr-x 2 jenkins jenkins 4096 Feb 27 09:19 workflow-libs
/etc/rc.d/init.d/jenkins ##启东脚本
/var/log/jenkins/jenkins.log:Jenkins ##日志文件
启动jenkins 服务
systemctl start jenkins
systemctl start jenkins
Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.
启动失败 查看 报错信息
Starting LSB: Jenkins Continuous Integration Server...
Starting Jenkins bash: /usr/bin/java: No such file or directory
Feb 27 09:03:12 test-bcliunx-3 jenkins: [FAILED]
没有找到 java 命令
查看java 命令
/opt/jdk1.7.0_51/bin/java
解决方法修改 jenkins 启动脚本
vim /etc/rc.d/init.d/jenkins
添加下面的文件
启动jenkis
systemctl start jenkins
web 登录测试
:8080/
根据提示输入密码
安装所需要的插件
登录成功后设置管理员密码
登录成功后界面如下所示
局域网内利用GitLab+Jenkins自动生成GitBook并发布(Nginx)
Linux+Git+Maven+Jenkins+Neuxs自动化编译环境搭建
在CentOS 7上安装Jenkins
CentOS6安装Jenkins
Jenkins+Maven+Git搭建持续集成和自动化部署的配置手记
在Fedora 21上搭建Jenkins+SonarQube的Maven项目自动化测试平台