public static final class HudsonHomeLoader.CopyExisting extends Object implements HudsonHomeLoader
HudsonHomeLoader.CopyExisting, HudsonHomeLoader.LocalNEW| Constructor and Description |
|---|
CopyExisting(File source)
Either a zip file or a directory that contains the home image.
|
CopyExisting(URL source)
Extracts from a zip file in the resource.
|
| Modifier and Type | Method and Description |
|---|---|
File |
allocate()
Returns a directory to be used as JENKINS_HOME
|
public CopyExisting(File source) throws MalformedURLException
MalformedURLExceptionpublic CopyExisting(URL source)
This is useful in case you want to have a test data in the resources. Only file URL is supported.
public File allocate() throws Exception
HudsonHomeLoaderallocate in interface HudsonHomeLoaderException - to cause a test to fail.Copyright © 2004–2019. All rights reserved.