From 00bde593563d3e1e74329f3155a907ed238e24d3 Mon Sep 17 00:00:00 2001 From: Ewout Prangsma Date: Thu, 5 Apr 2018 09:40:27 +0200 Subject: [PATCH] Ignore errors in `kubelet logs` --- Jenkinsfile.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index e1e816434..63b1f6948 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -102,7 +102,8 @@ def buildCleanupSteps(Map myParams, String kubeConfigRoot, String kubeconfig) { "KUBECONFIG=${kubeConfigRoot}/${kubeconfig}", ]) { sh "mkdir -p logs" - sh "kubectl logs -n ${env.DEPLOYMENTNAMESPACE} --selector=name=arango-deployment-operator > ./logs/deployment-${kubeconfig}.log" + sh returnStatus: true, script:"kubectl logs -n ${env.DEPLOYMENTNAMESPACE} --selector=name=arango-deployment-operator > ./logs/deployment-${kubeconfig}.log" + sh returnStatus: true, script:"kubectl logs -n kube-system --selector=name=arango-storage-operator > ./logs/storage-${kubeconfig}.log" archive includes: 'logs/*' sh "make cleanup-tests" }