From a3a487f70fec9e7bcc06d8302244f95f7ecfdf87 Mon Sep 17 00:00:00 2001 From: Javier Garcia Date: Wed, 4 Dec 2024 17:59:24 +0100 Subject: [PATCH] JENKINS-74950 - Improve the K8s Maven sample to run in resources limited environments --- .../jenkins/plugins/kubernetes/pipeline/samples/maven.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy b/src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy index d2564b6e0..a0ee6d053 100644 --- a/src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy +++ b/src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy @@ -12,6 +12,11 @@ spec: - name: maven # In a real Jenkinsfile, it is recommended to pin to a specific version and use Dependabot or Renovate to bump it. image: maven:latest + resources: + requests: + memory: "256Mi" + limits: + memory: "512Mi" command: - sleep args: