From d2cf732ed4d57b79984d47cb2bb11cfd82f9e1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Barbero?= <mikael.barbero@eclipse-foundation.org> Date: Thu, 2 Dec 2021 15:33:17 +0100 Subject: [PATCH] Jenkinsfile housekeeping --- Jenkinsfile | 56 ++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 051c7f0a..14fb8629 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,9 +35,9 @@ buildDiscarder(logRotator(numToKeepStr: '10')) } - triggers { + triggers { // build once a week to keep up with parents images updates - cron('H H * * H') + cron('H H * * H') } stages { @@ -88,33 +88,33 @@ stage('Deploy to cluster') { agent { kubernetes { - label 'kubedeploy-agent-' + env.JOB_NAME.replaceAll("/", "-") + label 'kubedeploy-agent' yaml ''' - apiVersion: v1 - kind: Pod - spec: - containers: - - name: kubectl - image: eclipsefdn/kubectl:okd-c1 - command: - - cat - tty: true - resources: - limits: - cpu: 1 - memory: 1Gi - volumeMounts: - - mountPath: "/home/default/.kube" - name: "dot-kube" - readOnly: false - - name: jnlp - resources: - limits: - cpu: 1 - memory: 1Gi - volumes: - - name: "dot-kube" - emptyDir: {} + apiVersion: v1 + kind: Pod + spec: + containers: + - name: kubectl + image: eclipsefdn/kubectl:okd-c1 + command: + - cat + tty: true + resources: + limits: + cpu: 1 + memory: 1Gi + volumeMounts: + - mountPath: "/home/default/.kube" + name: "dot-kube" + readOnly: false + - name: jnlp + resources: + limits: + cpu: 1 + memory: 1Gi + volumes: + - name: "dot-kube" + emptyDir: {} ''' } } -- GitLab