下面是Jankins运行的pom.xml片段,但它没有在电子邮件中发送所发生的错误。有没有人把这个弄好了。
<plugin>
<groupId>de.berlios.jsunit</groupId>
<artifactId>jsunit-maven2-plugin</artifactId>
<executions>
<execution>
<id>test</id>
<configuration>
<sourceDirectory>./WebContent/jsunit</sourceDirectory>
<sources>
<source>blah.js</source>
</sources>
<testSourceDirectory>./WebContent/jsunit</testSourceDirectory>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<testSuites>
<testSuite>
<name>SampleSuite</name>
<type>TESTCASES</type>
<includes>
<include>blah_test.js</include>
</includes>
</testSuite>
</testSuites>
</configuration>
<goals>
<goal>jsunit-test</goal>
</goals>
</execution>
</executions>
</plugin>发布于 2013-01-19 03:17:20
Jenkins在默认情况下不会这样做,但是如果您使用Extended Email plugin,您可以配置您的构建电子邮件以包含来自控制台输出的任何您喜欢的数据。您可能还想查看使用Jelly模板来格式化电子邮件的these examples。
https://stackoverflow.com/questions/14405476
复制相似问题