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" } }