From 83907096140ce3ef61cc5201273d575b33802f7a Mon Sep 17 00:00:00 2001 From: Jakub Rusz Date: Tue, 22 Mar 2022 11:00:33 +0100 Subject: [PATCH] ci/details: list system repositories and run in after_script too It is good to know what system repositories are used exactly on the runner. Also running the ci_details.sh in after_script can help during any debugging as packages that got updated or installed during the run can be easily identified. --- .gitlab-ci.yml | 9 ++++----- schutzbot/ci_details.sh | 5 +++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b076fa89..0b1e304d8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,8 +8,9 @@ stages: .base: before_script: - - schutzbot/ci_details.sh > ci-details + - schutzbot/ci_details.sh > ci-details-before-run after_script: + - schutzbot/ci_details.sh > ci-details-after-run - schutzbot/update_github_status.sh update - schutzbot/save_journal.sh - schutzbot/run_cloud_cleaner.sh @@ -20,7 +21,8 @@ stages: paths: - journal-log.gpg - ci-artifacts - - ci-details + - ci-details-before-run + - ci-details-after-run - "*.repo" - COMPOSER_NVR when: always @@ -77,9 +79,6 @@ RPM: - !reference [.build_rules, rules] script: - sh "schutzbot/mockbuild.sh" - after_script: - - schutzbot/update_github_status.sh update - - schutzbot/save_journal.sh parallel: matrix: - RUNNER: diff --git a/schutzbot/ci_details.sh b/schutzbot/ci_details.sh index 73f16456a..46d2fafc5 100755 --- a/schutzbot/ci_details.sh +++ b/schutzbot/ci_details.sh @@ -33,6 +33,11 @@ CI MACHINE SPECS EOF echo -e "\033[0m" +echo "List of system repositories:" +yum repolist -v + +echo "------------------------------------------------------------------------------" + echo "List of installed packages:" rpm -qa | sort echo "------------------------------------------------------------------------------"