jenkins部署-docker

https://hub.docker.com/_/jenkins

https://blog.csdn.net/ma726518972/article/details/94738790

 

docker pull jenkins/jenkins:lts;

mkdir /data/jenkins

chown -R 1000:1000 jenkins/

docker run -d --name jenkins_1 -p 8080:8080 -p 50000:50000 -v /data/jenkins:/var/jenkins_home -v /etc/localtime:/etc/localtime:ro jenkins/jenkins:lts

进入映射地址,获取初始密码

cat secrets/initialAdminPassword

进入jenkins地址,然后安装推荐插件。

 

jenkins时区不对 :

在【系统管理】-【脚本命令行】里运行

System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asia/Shanghai')

  

posted @ 2020-04-28 14:03  jabbok  阅读(173)  评论(0编辑  收藏  举报