在centos中部署jenkins

在centos中部署jenkins,需要的环境:安装jdk,Apache-tomcat

这两步我前面文章里已写,再次忽略

到官网下载最新的jenkins

我这里的是  jenkins.war

把该文件移到/usr/local/tomcat/webapps/下

对其解压java -jar jenkins.war

然后 重启tomcat服务

/usr/local/tomcat/bin/startup.sh

最后 就可以在网页上输入http://ip地址:8080/jenkins

能成功看到jenkins界面 就说明安装成功

 jenkins原始密码

Unlock Jenkins

To ensure Jenkins is securely set up by the administrator, a password has been written to the log (not sure where to find it?) and this file on the server:

/root/.jenkins/secrets/initialAdminPassword

 

Please copy the password from either location and paste it below.

 

 解决 jenkins 下使用 HTML Publisher 插件后查看 html 报告显示不正常 以 jmeter 报告为例

我的网页使用的是css和Js,所以显示不全。解决方法如下:
在jenkins系统管理中输入以下脚本运行:
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

原文地址:https://www.cnblogs.com/yecao8888/p/5262376.html