File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/org/csanchez/jenkins/plugins/kubernetes Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 13
13
import hudson .model .TaskListener ;
14
14
import hudson .util .FormValidation ;
15
15
import io .fabric8 .kubernetes .api .model .Pod ;
16
+ import io .fabric8 .kubernetes .client .KubernetesClientException ;
16
17
import java .io .IOException ;
17
18
import java .time .Duration ;
18
19
import java .time .Instant ;
@@ -195,6 +196,8 @@ private static void garbageCollect() {
195
196
client .resource (pod ).delete ();
196
197
});
197
198
}
199
+ } catch (KubernetesClientException e ) {
200
+ LOGGER .log (Level .WARNING , "Unexpected error while calling Kubernetes API" , e );
198
201
} catch (KubernetesAuthException e ) {
199
202
LOGGER .log (Level .WARNING , "Error authenticating to Kubernetes" , e );
200
203
} catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments