以下是我在Jenkins构建中使用的命令--> 执行 Shell 配置
1)git config --local user.name XXXXX
2)curl -o cucumber-sandwich.jar -Lk "path to download cucumber sandwich jar"
3)
nohup java -jar cucumber-sandwich.jar &
/opt/beasys/apache-maven-3.0.4/bin/mvn -f myProject/pom.xml -s settings.xml -Ptest -Dit.test=myproject clean verify
4)nohup java -jar cucumber-sandwich.jar -f /opt/jenkins/ws/myProject/target/TestResults/json -o /opt/jenkins/ws/myProject/CucumberReports/cucumber-sandwich
在本地生成报告(feature_overview.html 等),但不在詹金斯服务器上。