Skip to content

Commit a756e4b

Browse files
authored
Merge pull request #1626 from jgarciacloudbees/JENKINS-74950
JENKINS-74950 - Improve the K8s Maven sample to run in resources limited environments
2 parents d82c569 + a3a487f commit a756e4b

File tree

1 file changed

+5
-0
lines changed
  • src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples

1 file changed

+5
-0
lines changed

src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ spec:
1212
- name: maven
1313
# In a real Jenkinsfile, it is recommended to pin to a specific version and use Dependabot or Renovate to bump it.
1414
image: maven:latest
15+
resources:
16+
requests:
17+
memory: "256Mi"
18+
limits:
19+
memory: "512Mi"
1520
command:
1621
- sleep
1722
args:

0 commit comments

Comments
 (0)