File tree 1 file changed +10
-0
lines changed
src/main/java/org/csanchez/jenkins/plugins/kubernetes
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 31
31
import edu .umd .cs .findbugs .annotations .CheckForNull ;
32
32
import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
33
33
import hudson .Functions ;
34
+ import hudson .model .Descriptor ;
34
35
import hudson .model .TaskListener ;
36
+ import hudson .slaves .ComputerLauncher ;
35
37
import hudson .slaves .JNLPLauncher ;
36
38
import hudson .slaves .SlaveComputer ;
37
39
import io .fabric8 .kubernetes .api .model .ContainerStatus ;
@@ -373,4 +375,12 @@ public Throwable getProblem() {
373
375
public void setProblem (@ CheckForNull Throwable problem ) {
374
376
this .problem = problem ;
375
377
}
378
+
379
+ @ Override
380
+ public Descriptor <ComputerLauncher > getDescriptor () {
381
+ return new DescriptorImpl ();
382
+ }
383
+
384
+ // Only there to avoid throwing unnecessary exceptions. KubernetesLauncher is never instantiated via UI.
385
+ private static class DescriptorImpl extends Descriptor <ComputerLauncher > {}
376
386
}
You can’t perform that action at this time.
0 commit comments