windows下Jenkins和tomcat的安装
2018-04-27 本文已影响0人
背起我的破书包
相关包下载https://pan.baidu.com/s/1ju6Bin282nMM1wJjSz18LQ
1、安装tomcat
教程地址: https://www.cnblogs.com/beginner-boy/p/7806680.html
修改端口,访问地址为http://localhost:8888/

将jenkins.war下载后放到

Jenkins的安装
步骤如下:
启动tomcat startup 打开http://localhost:8888/jenkins,显示如下界面

我的安装目录在E盘,所以秘钥的位置为,打开 initialAdminPassword 文件,复制出密码并填入,点击继续,进入安装插件页面。

创建用户

安装Jenkins时不能联网安装插件问题解决,插件管理,高级 ,将URL https改成http

,安装 插件HTML Publisher

3\新建任务,

4、构建触发器

启动tomcat服务

http://localhost:8888/jenkins
jenkins的console控制台中文乱码
二、如果非要在windows下部署:
请参考下面步骤:
1、Jenkins->系统管理->系统设置,在全局属性新建变量
键为:LANG
值为:zh_CN.UTF-8

2、添加环境变量
键=JAVA_TOOL_OPTIONS
值=-Dfile.encoding=UTF-8
Tomcat控制台中文乱码
tomcat目录下找到bin/catalina.bat/,找到-Djava.protocol.handler.pkgs=org.apache.catalina.webresources加入属性-Dfile.encoding=GBK

