Azure: Collect Host's systemd journal

The journal of Host is useful for AVC/SECCOMP analyzing.

Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Stanislav Levin authored and Florence Blanc-Renaud committed 2021-03-30 09:58:42 +02:00
1 parent 5afe13798e
commit 45d2381037
1 file changed
+11
+11
View File
@@ -58,6 +58,16 @@ steps:
condition: succeededOrFailed()
displayName: Host's memory statistics
- script: |
set -eu
HOST_JOURNAL=host_journal.log
HOST_JOURNAL_PATH="${IPA_TESTS_ENV_WORKING_DIR}/${HOST_JOURNAL}.tar.gz"
sudo journalctl -b | tee "$HOST_JOURNAL"
tar --ignore-failed-read -czf "$HOST_JOURNAL_PATH" "$HOST_JOURNAL"
condition: succeededOrFailed()
displayName: Host's systemd journal
- task: PublishTestResults@2
inputs:
testResultsFiles: 'ipa_envs/*/$(CI_RUNNER_LOGS_DIR)/nosetests.xml'
@@ -121,6 +131,7 @@ steps:
!*/*.yml
!*/*.yaml
!*/*.log
!*.tar.gz
EOF
cat "$artifacts_ignore_path"
condition: succeededOrFailed()