Jenkins之Linux和window配置区别

一、命令行配置

windows:

java -jar .\libs\gen-html-report-1.0-SNAPSHOT.jar .\reports_%BUILD_NUMBER%.html .\target\reports\output.json

Linux:

java -jar ./libs/gen-html-report-1.0-SNAPSHOT.jar ./reports_$BUILD_NUMBER.html ./target/reports/output.json

二、邮件内容配置

windows:

${FILE,path="C:\\Users\\Administrator\\.jenkins\\workspace\\XXX自动化测试工程目录\\$JOB_BASE_NAME\\reports_$BUILD_NUMBER.html"}
<br>
详细信息请查看地址:
<a href="$JOB_URL/$BUILD_NUMBER/cucumber-html-reports/overview-features.html">$JOB_URL/$BUILD_NUMBER/cucumber-html-reports/overview-features.html</a><br>
(本邮件由系统自动发出)

Linux:

${FILE,path="/var/lib/jenkins/workspace/BD-Interface-Test/reports_$BUILD_NUMBER.html"}
<br>
详细信息请参照查看地址:
<a href="http://10.15.1.242:18080/job/$PROJECT_NAME/$BUILD_NUMBER/cucumber-html-reports/overview-features.html">http://10.15.1.242:18080/job/$PROJECT_NAME/$BUILD_NUMBER/cucumber-html-reports/overview-features.html</a><br>
(本邮件由系统自动发出)

新方式:

${FILE,path="/var/lib/jenkins/workspace/XXX目录/$JOB_BASE_NAME/reports_$BUILD_NUMBER.html"}
<br>
详细信息请参照查看地址:
<a href="$JOB_URL/$BUILD_NUMBER/cucumber-html-reports/overview-features.html">$JOB_URL/$BUILD_NUMBER/cucumber-html-reports/overview-features.html</a><br>
(本邮件由系统自动发出)
上一篇:Mysql_组合索引和单列索引


下一篇:DP动态规划练习