Update Jenkinsfile avoid overriding pod logs
@@ -65,7 +65,7 @@ pipeline {
always {
script {
for (service in ["assisted-service","postgres","scality","createimage"]) {
- sh "kubectl get pods -o=custom-columns=NAME:.metadata.name -A | grep ${service} | xargs -r -I {} sh -c \"kubectl logs {} -n assisted-installer > ${service}.log\" || true"
+ sh "kubectl get pods -o=custom-columns=NAME:.metadata.name -A | grep ${service} | xargs -r -I {} sh -c \"kubectl logs {} -n assisted-installer > {}.log\" || true"
}
archiveArtifacts artifacts: '*.log', fingerprint: true
}
