jenkins蓝海项目及slave部署

Master部署
yum-config-manager ?--add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install docker-ce
systemctl enable docker
systemctl start docker
docker run \
-u root \
--rm \
-d \
-p 8081:8080 \
-p 50000:50000 \
-v jenkins-data:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
jenkinsci/blueocean、

salve部署
jenkins蓝海项目及slave部署
jenkins蓝海项目及slave部署

jenkins蓝海项目及slave部署

docker run jenkins/jnlp-slave -url http://jenkins-server:port -workDir=/home/jenkins/agent <secret> <agent name>

nohup docker run jenkins/jnlp-slave -url http://192.168.1.106:8081 -workDir=/home/jenkins/.jenkins 6a63d0b7f925c9a5d53c31342ef10a1c82df640e5d75db19096b45ad09a4f46c node1 &
agent_name必须与jenkins上agent名字相同