public abstract class AbstractSessionManagerStepExecution<S extends AbstractSessionManagerStep> extends AbstractStepExecution<S>
| Modifier and Type | Field and Description |
|---|---|
protected io.fabric8.kubernetes.clnt.v2_5.KubernetesClient |
client |
protected org.arquillian.cube.kubernetes.api.Configuration |
configuration |
protected boolean |
isOpenShift |
protected org.arquillian.cube.kubernetes.api.Session |
session |
protected org.arquillian.cube.kubernetes.impl.SessionManager |
sessionManager |
LOGGER| Modifier and Type | Method and Description |
|---|---|
protected String |
generateNamespaceId(String sessionId)
Generates a namespace id/name if one has not been explicitly specified.
|
protected org.csanchez.jenkins.plugins.kubernetes.pipeline.NamespaceAction |
getNamespaceAction()
Lookup namespace that is already defined in the current build.
|
protected void |
init() |
protected boolean |
isNamespaceProvided() |
abstract boolean |
onStart(org.arquillian.cube.kubernetes.impl.SessionManager sessionManager)
Called when the execution starts
|
abstract void |
onStop(org.arquillian.cube.kubernetes.impl.SessionManager sessionManager)
Called when the execution ends.
|
boolean |
start() |
void |
stop(Throwable cause) |
protected List<URL> |
toURL(List<String> urls) |
protected URL |
toURL(String url) |
generateNamespaceId, generateSessionId, getKubernetesClientprotected org.arquillian.cube.kubernetes.api.Session session
protected transient io.fabric8.kubernetes.clnt.v2_5.KubernetesClient client
protected transient org.arquillian.cube.kubernetes.api.Configuration configuration
protected transient org.arquillian.cube.kubernetes.impl.SessionManager sessionManager
protected boolean isOpenShift
public abstract boolean onStart(org.arquillian.cube.kubernetes.impl.SessionManager sessionManager)
throws Exception
Exceptionpublic abstract void onStop(org.arquillian.cube.kubernetes.impl.SessionManager sessionManager)
throws Exception
sessionManager - Exceptionpublic boolean start()
throws Exception
start in class org.jenkinsci.plugins.workflow.steps.StepExecutionExceptionpublic void stop(Throwable cause) throws Exception
stop in class org.jenkinsci.plugins.workflow.steps.StepExecutionExceptionprotected boolean isNamespaceProvided()
protected String generateNamespaceId(String sessionId)
sessionId - The id of the session.protected org.csanchez.jenkins.plugins.kubernetes.pipeline.NamespaceAction getNamespaceAction()
getNamespaceAction in class AbstractStepExecution<S extends AbstractSessionManagerStep>NamespaceAction.Copyright © 2015–2017 Red Hat. All rights reserved.