[stable/jenkins] make pod retention policy setting configurable (#6962)

* [stable/jenkins] make pod retention policy setting configurable

* [stable/jenkins] Bump helm chart version to 0.16.19
This commit is contained in:
Jakub Jursa
2018-08-14 10:12:04 -07:00
committed by k8s-ci-robot
parent a951e8beea
commit e614c1033d
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 0.16.18
version: 0.16.19
appVersion: 2.121.2
description: Open source continuous integration server. It supports multiple SCM tools
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based
+2
View File
@@ -94,6 +94,7 @@ data:
<imagePullSecrets/>
{{- end }}
<nodeProperties/>
<podRetention class="org.csanchez.jenkins.plugins.kubernetes.pod.retention.Default"/>
</org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
{{- end -}}
</templates>
@@ -106,6 +107,7 @@ data:
<retentionTimeout>5</retentionTimeout>
<connectTimeout>0</connectTimeout>
<readTimeout>0</readTimeout>
<podRetention class="org.csanchez.jenkins.plugins.kubernetes.pod.retention.{{ .Values.Agent.PodRetention }}"/>
</org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud>
</clouds>
<quietPeriod>5</quietPeriod>
+3
View File
@@ -142,6 +142,9 @@ Agent:
memory: "256Mi"
# You may want to change this to true while testing a new image
AlwaysPullImage: false
# Controls how slave pods are retained after the Jenkins build completes
# Possible values: Always, Never, OnFailure
PodRetention: Never
# You can define the volumes that you want to mount for this container
# Allowed types are: ConfigMap, EmptyDir, HostPath, Nfs, Pod, Secret
# Configure the attributes as they appear in the corresponding Java class for that type