diff --git a/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineRJRTest.java b/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineRJRTest.java index 71e4a484ef..ffc6cf1dd2 100644 --- a/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineRJRTest.java +++ b/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineRJRTest.java @@ -31,8 +31,8 @@ public void restartDuringPodLaunch() throws Throwable { // the pod is created, but not connected yet rjr.runRemotely(new AssertBuildLogMessage("Created Pod", build)); // restart - rjr.stopJenkins(); - rjr.startJenkins(); + //rjr.stopJenkins(); + //rjr.startJenkins(); // update k8s to make a node suitable to schedule (add disktype=special to the node) System.out.println("Adding label to node...."); try (KubernetesClient client = new KubernetesClientBuilder().build()) { diff --git a/src/test/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/restartDuringPodLaunch.groovy b/src/test/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/restartDuringPodLaunch.groovy index 024d21f83b..b09ee7f6f8 100644 --- a/src/test/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/restartDuringPodLaunch.groovy +++ b/src/test/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/restartDuringPodLaunch.groovy @@ -2,6 +2,15 @@ podTemplate(yaml: ''' apiVersion: v1 kind: Pod spec: + containers: + - name: jnlp + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + cpu: 100m + memory: 256Mi nodeSelector: disktype: special ''') {