private MatrixProject createMatrixArtifactProject() throws IOException {
   MatrixProject p = createMatrixProject();
   p.setAxes(new AxisList(new Axis("FOO", "one", "two")));
   p.getBuildersList().add(new ArtifactBuilder());
   p.getPublishersList().add(new ArtifactArchiver("**", "", false));
   return p;
 }
 /** Test copying artifacts from all configurations of a matrix job */
 public void testMatrixAll() throws Exception {
   MatrixProject mp = createMatrixProject();
   mp.setAxes(new AxisList(new Axis("ARCH", "sparc", "x86")));
   mp.getBuildersList().add(new ArchMatrixBuilder());
   mp.getPublishersList().add(new ArtifactArchiver("target/*", "", false));
   assertBuildStatusSuccess(mp.scheduleBuild2(0, new UserCause()).get());
   FreeStyleProject p = createProject(mp.getName(), "", "", true, false, false);
   FreeStyleBuild b = p.scheduleBuild2(0, new UserCause()).get();
   assertBuildStatusSuccess(b);
   assertFile(true, "ARCH=sparc/target/readme.txt", b);
   assertFile(true, "ARCH=sparc/target/sparc.out", b);
   assertFile(true, "ARCH=x86/target/readme.txt", b);
   assertFile(true, "ARCH=x86/target/x86.out", b);
 }