public class CliHyperDriver extends Object implements HyperDriver
Constructor and Description |
---|
CliHyperDriver() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkImageExists(hudson.Launcher launcher,
String image) |
ContainerInstance |
createAndLaunchBuildContainer(hudson.Launcher launcher,
String image) |
int |
execInContainer(hudson.Launcher launcher,
String containerId,
String commands) |
void |
prependArgs(hudson.util.ArgumentListBuilder args) |
void |
pullImage(hudson.Launcher launcher,
String image) |
int |
removeContainer(hudson.Launcher launcher,
String containerId) |
public ContainerInstance createAndLaunchBuildContainer(hudson.Launcher launcher, String image) throws IOException, InterruptedException
createAndLaunchBuildContainer
in interface HyperDriver
IOException
InterruptedException
public int execInContainer(hudson.Launcher launcher, String containerId, String commands) throws IOException, InterruptedException
execInContainer
in interface HyperDriver
IOException
InterruptedException
public int removeContainer(hudson.Launcher launcher, String containerId) throws IOException, InterruptedException
removeContainer
in interface HyperDriver
IOException
InterruptedException
public void pullImage(hudson.Launcher launcher, String image) throws IOException, InterruptedException
pullImage
in interface HyperDriver
IOException
InterruptedException
public boolean checkImageExists(hudson.Launcher launcher, String image) throws IOException, InterruptedException
checkImageExists
in interface HyperDriver
IOException
InterruptedException
public void prependArgs(hudson.util.ArgumentListBuilder args)
Copyright © 2016. All rights reserved.