diff --git a/Jenkinsfile b/Jenkinsfile index b1d3012..e4fc873 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -109,7 +109,7 @@ pipeline { set -eu mkdir -p "${DEPLOY_DIR}" # Rename complete uploads on the destination filesystem. - for archive in Reports.zip diagnostics.zip; do + for archive in Reports.zip Diagnostics.zip; do cp "${CI_ARTIFACT_DIR}/${archive}" "${DEPLOY_DIR}/.${archive}.tmp" mv -f "${DEPLOY_DIR}/.${archive}.tmp" "${DEPLOY_DIR}/${archive}" done diff --git a/README.md b/README.md index fe447a5..925494b 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Jenkins renders YAML reports and JSON diagnostics, validates the PDFs, and publishes encrypted archives to the same `/mnt/books` mount used by the books: - `/mnt/books/Reports/Reports.zip`: YAML report PDFs. -- `/mnt/books/Reports/diagnostics.zip`: diagnostic PDFs, preserving subfolders. +- `/mnt/books/Reports/Diagnostics.zip`: diagnostic PDFs, preserving subfolders. Only the ZIPs are archived as Jenkins artifacts. The agent needs `zip`, Python 3, and write access to `/mnt/books/Reports`. `DIAGNOSTICS_AUTHOR` defaults to Beffroi. diff --git a/tools/package-reports.sh b/tools/package-reports.sh index b53bee5..3a292ad 100755 --- a/tools/package-reports.sh +++ b/tools/package-reports.sh @@ -11,7 +11,7 @@ mkdir -p "$output_dir" staging_dir="$(mktemp -d)" trap 'rm -rf -- "$staging_dir"' EXIT -for category in Reports diagnostics; do +for category in Reports Diagnostics; do mkdir -p "$staging_dir/$category" if [[ "$category" == Reports ]]; then source_dir="$build_dir"