Collect logs from onprem on AI CI
@@ -90,7 +90,11 @@ pipeline {
sh "kubectl get all -A"
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 > {}.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 > k8s_{}.log\" || true"
+ }
+
+ for (service in ["installer","db"]) {
+ sh "podman logs ${service} > onprem_${service}.log || true"
}
sh "make clear-all"
