diff --git a/.gitlab/custom-jobs-and-variables.yml b/.gitlab/custom-jobs-and-variables.yml index 787ae92a5..bb40057dc 100644 --- a/.gitlab/custom-jobs-and-variables.yml +++ b/.gitlab/custom-jobs-and-variables.yml @@ -69,7 +69,7 @@ variables: .custom_job: artifacts: paths: - - ./*.cmake + - ./*.cmake.txt reports: junit: junit.xml diff --git a/scripts/gitlab/build_and_test.sh b/scripts/gitlab/build_and_test.sh index a7ca07228..ffc0fa294 100755 --- a/scripts/gitlab/build_and_test.sh +++ b/scripts/gitlab/build_and_test.sh @@ -167,6 +167,12 @@ fi hostconfig=$(basename ${hostconfig_path}) echo "[Information]: Found hostconfig ${hostconfig_path}" +# Create a copy of the hostconfig file with extension readable in GitLab UI (only in CI). +if [[ -n ${job_unique_id} ]] +then + cp ${hostconfig_path} ${project_dir}/${hostconfig}.txt +fi + # Build Directory # When using /dev/shm, we use prefix for both spack builds and source build, unless BUILD_ROOT was defined build_root=${BUILD_ROOT:-"${prefix}"}