风力发电项目自动化部署验证

《风力发电系统》自动化部署验证

jenkins自动化部署:如下图所示,配置如下:

cd /home/jenkins/workspace/lease-java1

rm -rf dist

rm -rf app

cd /home/jenkins/workspace/lease-vue1

cp -r dist /home/jenkins/workspace/lease-java1/dist

cd /home/jenkins/workspace/lease-app1/dist/build

cp -r h5 /home/jenkins/workspace/lease-java1/app

cd /home/jenkins/workspace/lease-java1/target

cp zsy-lease.war /home/jenkins/workspace/lease-java1/

docker build -t zsy-lease1 /home/jenkins.workspace leasejava lease/java/

docker ps

docker stop zsy-leasedocker rm zsy-leasedocker run -d \p 6602:8080 --restart=always \v/home/tomcat/logs2:/usr/local/tomcat/logs \v/home/tomcat/file-data:/homedata \v/etc/timezone:/etc/timezone/v/etc/localtime:/etc/localtime --name leasedocker name leasedocke3. 系统验证:系统全部验证通过!完美结束部署!

猜你喜欢