Class Resources
java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.pipeline.Resources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseQuietly(org.jenkinsci.plugins.workflow.steps.StepContext context, Closeable... closeables) Close eachCloseable, capturing and ignoring anyIOExceptionthrown.static org.jenkinsci.plugins.workflow.steps.BodyExecutionCallbackcloseQuietlyCallback(Closeable... closeables) Factory method for aBodyExecutionCallbackthat closes eachCloseablewhen execution is finished.
-
Constructor Details
-
Resources
public Resources()
-
-
Method Details
-
closeQuietly
public static void closeQuietly(@NonNull org.jenkinsci.plugins.workflow.steps.StepContext context, @NonNull Closeable... closeables) Close eachCloseable, capturing and ignoring anyIOExceptionthrown.- Parameters:
context- step contextcloseables- list of closable resources to close
-
closeQuietlyCallback
@NonNull public static org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback closeQuietlyCallback(@NonNull Closeable... closeables) Factory method for aBodyExecutionCallbackthat closes eachCloseablewhen execution is finished.- Parameters:
closeables- list of closable resources- Returns:
- new body execution callback, never null
-