public abstract void execute(AbstractBuild<?, ?> build) throws DockerException, IOException;
protected DockerLaunchAction getLaunchAction(AbstractBuild<?, ?> build) {
List<DockerLaunchAction> launchActionList = build.getActions(DockerLaunchAction.class);
DockerLaunchAction launchAction;
if( launchActionList.size() > 0 ) {
launchAction = launchActionList.get(0);
} else {
launchAction = new DockerLaunchAction();
build.addAction(launchAction);
}
return launchAction;
}