File tmpDir = Util.createTempDir();
File dir = Util.createTempDir(); hudson.setMountPoint(dir); hudson.mount();
private TestPluginManager() throws IOException { // TestPluginManager outlives a Jetty server, so can't pass in ServletContext. super(null, Util.createTempDir()); }
private TestPluginManager() throws IOException { // TestPluginManager outlives a Jetty server, so can't pass in ServletContext. super(null, Util.createTempDir()); }
private TestPluginManager() throws IOException { // TestPluginManager outlives a Jetty server, so can't pass in ServletContext. super(null, Util.createTempDir()); }
public TestPluginManager() throws IOException { // TestPluginManager outlives a Jetty server, so can't pass in ServletContext. super(null, Util.createTempDir()); }
/** * Creates a empty dummy {@link Repository} to keep JGit happy where it wants a valid {@link Repository} operation * for remote objects. */ private Repository openDummyRepository() throws IOException { final File tempDir = Util.createTempDir(); return new FileRepository(tempDir) { @Override public void close() { super.close(); try { Util.deleteRecursive(tempDir); } catch (IOException e) { // ignore } } }; }
File tmpDir = Util.createTempDir();
@Override public String getImage(DockerDriver driver, FilePath workspace, TaskListener listener) throws IOException, InterruptedException { if (image != null) return image; String tag = Long.toHexString(System.nanoTime()); final FilePath pathToContext = workspace.child(contextPath); if (!pathToContext.exists()) { throw new IOException(pathToContext.getRemote() + " does not exists."); } final FilePath pathToDockerfile = pathToContext.child(dockerfile); if (!pathToDockerfile.exists()) { throw new IOException( pathToContext.getRemote() + " does not exists."); } final File context = Util.createTempDir(); pathToContext.copyRecursiveTo(new FilePath(context)); pathToDockerfile.copyTo(new FilePath(new File(context, "Dockerfile"))); driver.buildDockerfile(listener, context.getAbsolutePath(), tag, forcePull); Util.deleteRecursive(context); this.image = tag; return tag; }
@Override public String getImage(DockerDriver driver, FilePath workspace, TaskListener listener) throws IOException, InterruptedException { boolean pull = forcePull; if (image != null) return image; String tag = Long.toHexString(System.nanoTime()); final FilePath pathToContext = workspace.child(contextPath); if (!pathToContext.exists()) { throw new IOException(pathToContext.getRemote() + " does not exists."); } final FilePath pathToDockerfile = pathToContext.child(dockerfile); if (!pathToDockerfile.exists()) { throw new IOException( pathToContext.getRemote() + " does not exists."); } final File context = Util.createTempDir(); pathToContext.copyRecursiveTo(new FilePath(context)); pathToDockerfile.copyTo(new FilePath(new File(context, "Dockerfile"))); driver.buildDockerfile(listener, context.getAbsolutePath(), tag, pull); Util.deleteRecursive(context); this.image = tag; return tag; }
File tmpDir = Util.createTempDir();
File tmpDir = Util.createTempDir();
File dir = Util.createTempDir(); hudson.setMountPoint(dir); hudson.mount();
File dir = Util.createTempDir(); hudson.setMountPoint(dir); hudson.mount();
File dir = Util.createTempDir(); hudson.setMountPoint(dir); hudson.mount();
File dir = Util.createTempDir(); hudson.setMountPoint(dir); hudson.mount();
File dir = Util.createTempDir(); hudson.setMountPoint(dir); hudson.mount();
File destdir = null; try { destdir = Util.createTempDir();
File destdir = null; try { destdir = Util.createTempDir();
FilePath tempdir = new FilePath(Util.createTempDir());