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
|
exit 4
|
||||||
fi
|
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.
|
# Download Discord Game SDK from their CDN if necessary.
|
||||||
if [ ! -e "discord_game_sdk.zip" ]
|
if [ ! -e "discord_game_sdk.zip" ]
|
||||||
then
|
then
|
||||||
@@ -386,6 +376,16 @@ case $arch in
|
|||||||
*) arch_discord="$arch";;
|
*) arch_discord="$arch";;
|
||||||
esac
|
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.
|
# Archive the executable and its dependencies.
|
||||||
# The executable should always be archived last for the check after this block.
|
# The executable should always be archived last for the check after this block.
|
||||||
status=0
|
status=0
|
||||||
|
|||||||
Reference in New Issue
Block a user