mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-26 07:00:07 -05:00
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:
1 parent
5afe13798e
commit
45d2381037
1 file changed
+11
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user