一、解压Node

xz -d node-v12.13.1-linux-x64.tar.xz
tar -xvf node-v12.13.1-linux-x64.tar

image-20210611195536531

二、授权Node

chown -R 1000:1000 node_home

image-20210611195929035

三、配置Node

安装插件

image-20210611201304181

配置Node

image-20210611201706431

新建项目

image-20210611224102869

构建项目

image-20210611232858753

部署脚本

rm -rf /home/qiang/jenkins/pavilion-front/dist
mv /home/qiang/jenkins/pavilion-front/backup/dist /home/qiang/jenkins/pavilion-front
docker-compose -f /home/qiang/jenkins/pavilion-front/docker-compose.yaml restart

image-20210612000726883