|
Me too. In addition due actually limitation of plugin to describe which source folder should be keept, for a tycho-maven build for example, we specify something like /src//, all files in these folder (source and resources like .xml .pdf .js .html .jps .gif.....) are copied to jobs/JOB1/builds/$BUILD_ID/jacoco/sources, gathering about 2.2GB for each build. I think plugins should collect only files that matches entry in .exec file and/or permit a better selector on which resources have to copy.
Actual workaround add a shell script that delete sources folder in jacoco folder for previous build.
export BUILDS_FOLDER=`dirname $WORKSPACE`/builds
for folder in `ls $BUILDS_FOLDER | grep "[0-9]\{1,\}" | grep -v $BUILD_ID`; do
echo Deleting "$BUILDS_FOLDER/$folder/jacoco/sources" ; rm -rf "$BUILDS_FOLDER/$folder/jacoco/sources" ;
done;
|