Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
ffa66e61ef
|
@@ -47,17 +47,22 @@ copr-cli download-build --dest "$LOG_DIR" "$BUILD_ID" || {
|
|||||||
echo "warning: failed to download build artifacts" >&2
|
echo "warning: failed to download build artifacts" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
# Dump each chroot's builder-live.log as a collapsible group.
|
# Dump each chroot's builder-live.log as a collapsible group. COPR stores
|
||||||
|
# the log gzipped on the mirror once the build has finished; fall back to
|
||||||
|
# the plain file in case a backend version ever serves it uncompressed.
|
||||||
for chroot_dir in "$LOG_DIR"/*/; do
|
for chroot_dir in "$LOG_DIR"/*/; do
|
||||||
[ -d "$chroot_dir" ] || continue
|
[ -d "$chroot_dir" ] || continue
|
||||||
chroot=$(basename "$chroot_dir")
|
chroot=$(basename "$chroot_dir")
|
||||||
log="${chroot_dir}builder-live.log"
|
|
||||||
if [ -f "$log" ]; then
|
|
||||||
echo
|
echo
|
||||||
echo "::group::${chroot} builder-live.log"
|
echo "::group::${chroot} builder-live.log"
|
||||||
cat "$log"
|
if [ -f "${chroot_dir}builder-live.log.gz" ]; then
|
||||||
echo "::endgroup::"
|
zcat "${chroot_dir}builder-live.log.gz"
|
||||||
|
elif [ -f "${chroot_dir}builder-live.log" ]; then
|
||||||
|
cat "${chroot_dir}builder-live.log"
|
||||||
|
else
|
||||||
|
echo "(no builder-live.log found for ${chroot})"
|
||||||
fi
|
fi
|
||||||
|
echo "::endgroup::"
|
||||||
done
|
done
|
||||||
|
|
||||||
exit "$STATUS"
|
exit "$STATUS"
|
||||||
|
|||||||
Reference in New Issue
Block a user