Skip to content

Commit

Permalink
Add amount of disk space used by build to the log (#3569)
Browse files Browse the repository at this point in the history
* Add amount of disk space used by build to the log

Signed-off-by: Stewart X Addison <[email protected]>

---------

Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa authored Feb 8, 2024
1 parent e4aa0c7 commit fa3b1df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build-farm/make-adopt-build-farm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,9 @@ echo "$MAC_ROSETTA_PREFIX $PLATFORM_SCRIPT_DIR/../makejdk-any-platform.sh --clea
CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM//\"/temporary_speech_mark_placeholder}"

# shellcheck disable=SC2086
bash -c "$MAC_ROSETTA_PREFIX $PLATFORM_SCRIPT_DIR/../makejdk-any-platform.sh --clean-git-repo --jdk-boot-dir ${JDK_BOOT_DIR} --configure-args \"${CONFIGURE_ARGS_FOR_ANY_PLATFORM}\" --target-file-name ${FILENAME} ${TAG_OPTION} ${OPTIONS} ${BUILD_ARGS} ${VARIANT_ARG} ${JAVA_TO_BUILD}"
bash -c "$MAC_ROSETTA_PREFIX $PLATFORM_SCRIPT_DIR/../makejdk-any-platform.sh --clean-git-repo --jdk-boot-dir ${JDK_BOOT_DIR} --configure-args \"${CONFIGURE_ARGS_FOR_ANY_PLATFORM}\" --target-file-name ${FILENAME} ${TAG_OPTION} ${OPTIONS} ${BUILD_ARGS} ${VARIANT_ARG} ${JAVA_TO_BUILD}"

if [ -d "${WORKSPACE}" ]; then
SPACEUSED=$(du -sk "$WORKSPACE")
echo "Total disk space in Kb consumed by build process: $SPACEUSED"
fi

0 comments on commit fa3b1df

Please sign in to comment.