Class Resources
java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.pipeline.Resources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeQuietly
(org.jenkinsci.plugins.workflow.steps.StepContext context, Closeable... closeables) Close eachCloseable
, capturing and ignoring anyIOException
thrown.static org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback
closeQuietlyCallback
(Closeable... closeables) Factory method for aBodyExecutionCallback
that closes eachCloseable
when 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 anyIOException
thrown.- 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 aBodyExecutionCallback
that closes eachCloseable
when execution is finished.- Parameters:
closeables
- list of closable resources- Returns:
- new body execution callback, never null
-