提交 8f4dc07f 编写于 作者: O Olivier Lamy

add groupId and maven build with setRunHeadless( true ): prevent too many coffee on osx!

上级 a8ae4cbc
......@@ -178,6 +178,7 @@ THE SOFTWARE.
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!-- version specified in grandparent pom -->
<configuration>
......
......@@ -720,7 +720,9 @@ public class JenkinsRule implements TestRule, MethodRule, RootAction {
* @see #configureDefaultMaven()
*/
public MavenModuleSet createMavenProject(String name) throws IOException {
return jenkins.createProject(MavenModuleSet.class,name);
MavenModuleSet mavenModuleSet = jenkins.createProject(MavenModuleSet.class,name);
mavenModuleSet.setRunHeadless( true );
return mavenModuleSet;
}
/**
......
......@@ -207,7 +207,7 @@ public class MavenTest extends HudsonTestCase {
@SuppressWarnings("deprecation")
String buildLog = build.getLog();
assertNotNull(buildLog);
System.out.println(buildLog);
System.out.println(buildLog);
assertFalse(buildLog.contains("-Dpassword=12345"));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册