diff --git a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloud.java b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloud.java index a907aa76a7..135e3d20e9 100644 --- a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloud.java +++ b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloud.java @@ -703,6 +703,7 @@ public List getTemplatesFor(@CheckForNull Label label) { * Add a new template to the cloud * @param t docker template */ + @Override public void addTemplate(PodTemplate t) { this.templates.add(t); // t.parent = this; diff --git a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateGroup.java b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateGroup.java index c19ff7c27f..ffbef955c9 100644 --- a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateGroup.java +++ b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateGroup.java @@ -3,6 +3,13 @@ * A group of pod templates that can be saved together. */ public interface PodTemplateGroup { + + /** + * Add the template to the group. + * @param podTemplate the template to add + */ + void addTemplate(PodTemplate podTemplate); + /** * Replaces the old template with the new template. * @param oldTemplate the old template to replace