// get the build going, and wait until workflow pauses
WorkflowRun b = j.assertBuildStatusSuccess(foo.scheduleBuild2(0).get());
VirtualFile archivedFile = b.getArtifactManager().root().child("msg.out");
assertTrue(archivedFile.exists());
assertEquals("hello world\n",IOUtils.toString(archivedFile.open()));
}
@Test public void unarchiveDir() throws Exception {
WorkflowJob p = j.jenkins.createProject(WorkflowJob.class, "p");
p.setDefinition(new CpsFlowDefinition(StringUtils.join(Arrays.asList(