1.登录jenkins
- http://ip:12000
2.新建任务
2.1 增加任务描述
2.2 填写源码信息
2.3 构建触发器(可忽略)
2.4 构建环境
2.5 构建
echo $PATH node -v npm -v npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver npm install npm run build #编译项目 scp -r /root/.jenkins/workspace/health-event-web/master/* root@192.168.0.237:/mnt/ruiyi-health-web/ruiyi-health-web-platform/asicDataManagement/medical-regional-health-platform/master cd /root/.jenkins/workspace/health-event-web rm -R master