From: Erik Brakkee Date: Wed, 21 Sep 2022 19:11:21 +0000 (+0200) Subject: added java8 snippet X-Git-Url: http://wamblee.org/gitweb/?p=pipelinelib;a=commitdiff_plain;h=2aa3111f4b9eefa5ae2776d4ea308917a3135435 added java8 snippet --- diff --git a/resources/podtemplates/java8.yaml b/resources/podtemplates/java8.yaml new file mode 100644 index 0000000..1396ef6 --- /dev/null +++ b/resources/podtemplates/java8.yaml @@ -0,0 +1,21 @@ +apiVersion: v1 +kind: Pod +spec: + containers: + - name: build + image: cat.wamblee.org/java8:latest + command: ["tail", "-f", "/dev/null"] + imagePullPolicy: Always + volumeMounts: + - name: jenkins-m2repo + mountPath: /home/ci/.m2 + - name: jenkins-m2settings + mountPath: /home/ci/.m2/settings.xml + subPath: settings.xml + volumes: + - name: jenkins-m2repo + persistentVolumeClaim: + claimName: jenkins-m2repo + - name: jenkins-m2settings + configMap: + name: jenkins-m2settings diff --git a/resources/podtemplates/jnlp.yaml b/resources/podtemplates/jnlp.yaml index 1e66b60..a227175 100644 --- a/resources/podtemplates/jnlp.yaml +++ b/resources/podtemplates/jnlp.yaml @@ -1,9 +1,10 @@ +# this definition will be included in every pod. + apiVersion: v1 kind: Pod spec: + # quick termination of the pod. + terminationGracePeriodSeconds: 0 + # basically no further overrides currently containers: - name: jnlp - resources: - requests: - memory: "600M" - cpu: "550m"