jenkins+svn+maven实例(自动化持续集成)

1.源码管理,从svn下载最新自动化脚本代码

 

 

2.构建触发器,定时触发构建,每天早上9:20分进行构建
20 09 ***

 

 

3.构建步骤,先maven执行,执行后,打包报告包(用于发送邮件)
Goals 输入 compile test
Command 输入 
echo "报告打包"
cd /root/.jenkins/workspace/FBI_PAD(Interface Test)/target/surefire-reports
rm -rf html.tar
tar -cvf html.tar html

 

 

4.构建后发邮件,邮件带构建log及报告,附件的默认根目录是项目下
Attachments 输入 target/surefire-report/html.tar

 

 

posted on 2021-12-06 11:03  seamy  阅读(59)  评论(0编辑  收藏  举报