Delete complete builds to save disk space 97/71497/1
authorStephen Kitt <skitt@redhat.com>
Fri, 27 Apr 2018 07:29:15 +0000 (09:29 +0200)
committerStephen Kitt <skitt@redhat.com>
Fri, 27 Apr 2018 07:29:15 +0000 (09:29 +0200)
Once a build is completed and installed, we no longer need the build
tree. Deleting the build saves a lot of disk space.

Change-Id: Id986167db4aa43f0a84880616360fbe5c4daad83
JIRA: RELENG-100
Signed-off-by: Stephen Kitt <skitt@redhat.com>
jjb/integration/multipatch-distribution.sh

index ce0fcb4f7f319ea147f3d58102743d4ec5ee6ad8..6ed7071b6d918675110bf235cfd86ed642f9deab 100644 (file)
@@ -108,6 +108,9 @@ do
     --settings "$SETTINGS_FILE" \
     $MAVEN_OPTIONS
     cd "${BUILD_DIR}" || exit 1
+    # Since we've installed the artifacts, we can delete the build and save
+    # disk space
+    rm -rf "${PROJECT_SHORTNAME}"
 done
 
 if [ "${distribution_status}" == "not_included" ]; then