提交 d990fbb3 编写于 作者: A Andrew Bayer

Merge branch 'lacostej-pull4' of https://github.com/lacostej/jenkins into lacostej-lacostej-pull4

......@@ -23,13 +23,6 @@ import org.tmatesoft.svn.core.SVNException;
* @author Kohsuke Kawaguchi
*/
public class MavenBuildTest extends HudsonTestCase {
/**
* Sets guest credentials to access java.net Subversion repo.
*/
protected void setJavaNetCredential(SubversionSCM scm) throws SVNException, IOException {
// set the credential to access svn.dev.java.net
scm.getDescriptor().postCredential("https://www.dev.java.net/svn/hudson/","guest","",null,new PrintWriter(new NullStream()));
}
/**
* NPE in {@code build.getProject().getWorkspace()} for {@link MavenBuild}.
......@@ -74,9 +67,7 @@ public class MavenBuildTest extends HudsonTestCase {
public void testParallelModuleBuild() throws Exception {
configureDefaultMaven();
MavenModuleSet m = createMavenProject();
SubversionSCM scm = new SubversionSCM("https://svn.java.net/svn/hudson~svn/trunk/hudson/test-projects/multimodule-maven");
setJavaNetCredential(scm);
m.setScm(scm);
m.setScm(new ExtractResourceSCM(getClass().getResource("multimodule-maven.zip")));
buildAndAssertSuccess(m);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册