Jenkins: Move archive_tmp creation further down for logging coherency purposes
This commit is contained in:
20
.ci/build.sh
20
.ci/build.sh
@@ -356,16 +356,6 @@ then
|
||||
exit 4
|
||||
fi
|
||||
|
||||
# Create temporary directory for archival.
|
||||
echo [-] Gathering archive files
|
||||
rm -rf archive_tmp
|
||||
mkdir archive_tmp
|
||||
if [ ! -d "archive_tmp" ]
|
||||
then
|
||||
echo [!] Archive directory creation failed
|
||||
exit 5
|
||||
fi
|
||||
|
||||
# Download Discord Game SDK from their CDN if necessary.
|
||||
if [ ! -e "discord_game_sdk.zip" ]
|
||||
then
|
||||
@@ -386,6 +376,16 @@ case $arch in
|
||||
*) arch_discord="$arch";;
|
||||
esac
|
||||
|
||||
# Create temporary directory for archival.
|
||||
echo [-] Gathering archive files
|
||||
rm -rf archive_tmp
|
||||
mkdir archive_tmp
|
||||
if [ ! -d "archive_tmp" ]
|
||||
then
|
||||
echo [!] Archive directory creation failed
|
||||
exit 5
|
||||
fi
|
||||
|
||||
# Archive the executable and its dependencies.
|
||||
# The executable should always be archived last for the check after this block.
|
||||
status=0
|
||||
|
Reference in New Issue
Block a user