mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-18 11:12:23 +03:00
2f44b40d68
* OEL7: Fix CentOS7 Extras for OEL7 * Molecule: add logs collection for jobs
10 lines
253 B
Bash
Executable File
10 lines
253 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Ensure a clean environent
|
|
rm -fr molecule_logs
|
|
mkdir -p molecule_logs
|
|
|
|
# Collect and archive the logs
|
|
find ~/.cache/molecule/ -name \*.out -o -name \*.err -type f | xargs tar -uf molecule_logs/molecule.tar
|
|
gzip molecule_logs/molecule.tar
|