gitlab: display /packages.txt in build jobs
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 29 Jul 2024 14:44:02 +0000 (15:44 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 30 Jul 2024 10:38:34 +0000 (11:38 +0100)
The lcitool created containers save the full distro package list
details into /packages.txt. The idea is that build jobs will 'cat'
this file, so that the build log has a record of what packages
were used. This is important info, because when it comes to debug
failures, the original container is often lost.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20240724095505.33544-3-berrange@redhat.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240729144414.830369-3-alex.bennee@linaro.org>

.gitlab-ci.d/buildtest-template.yml
.gitlab-ci.d/crossbuild-template.yml

index 8f7ebfaed8b8a5bc262e527440a5e07f9ad01c39..844c26623d930ec15d31db38e9e87d5ce6d092c6 100644 (file)
@@ -9,6 +9,7 @@
     when: always
   before_script:
     - JOBS=$(expr $(nproc) + 1)
+    - cat /packages.txt
   script:
     - export CCACHE_BASEDIR="$(pwd)"
     - export CCACHE_DIR="$CCACHE_BASEDIR/ccache"
index d9f81b7061fe7dba855602ffbba1599d2c162563..53051ec793c6064361d33e42ebcc73483a240d99 100644 (file)
@@ -8,6 +8,8 @@
     key: "$CI_JOB_NAME"
     when: always
   timeout: 80m
+  before_script:
+    - cat /packages.txt
   script:
     - export CCACHE_BASEDIR="$(pwd)"
     - export CCACHE_DIR="$CCACHE_BASEDIR/ccache"