From b2319762a2b0ed594b28748ea90264df376daca5 Mon Sep 17 00:00:00 2001 From: Ewout Prangsma Date: Thu, 5 Apr 2018 09:09:43 +0200 Subject: [PATCH] Archive log files --- Jenkinsfile.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 083e02564..e1e816434 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -101,6 +101,9 @@ def buildCleanupSteps(Map myParams, String kubeConfigRoot, String kubeconfig) { "DOCKERNAMESPACE=${myParams.DOCKERNAMESPACE}", "KUBECONFIG=${kubeConfigRoot}/${kubeconfig}", ]) { + sh "mkdir -p logs" + sh "kubectl logs -n ${env.DEPLOYMENTNAMESPACE} --selector=name=arango-deployment-operator > ./logs/deployment-${kubeconfig}.log" + archive includes: 'logs/*' sh "make cleanup-tests" } }