diff options
-rwxr-xr-x | post-build-manage-buildhistory.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/post-build-manage-buildhistory.sh b/post-build-manage-buildhistory.sh index 7e226c4..95b7258 100755 --- a/post-build-manage-buildhistory.sh +++ b/post-build-manage-buildhistory.sh @@ -53,26 +53,10 @@ if [ ! -d $buildhistory_dir ]; then buildhistory_dir=`find /mnt/ci_build/workspace/tmp -type d -name buildhistory` fi -buildstats_dir=`find build -maxdepth 2 -type d -name buildstats` -if [ ! -d $buildstats_dir ]; then - buildstats_dir=`find /mnt/ci_build/workspace/tmp -type d -name buildstats` -fi - if [ ! -z "$buildhistory_dir" ] && [ -d $buildhistory_dir ]; then rm -rf _buildhistory git clone $tree -b $branch _buildhistory cp -a $buildhistory_dir/* _buildhistory/ - - # also copy buildstats if they exist - if [ ! -z "$buildstats_dir" ] && [ -d $buildstats_dir ]; then - mkdir -p _buildhistory/buildstats - # buildstats has this layout: - # buildstats/<build-name>-<machine>/<timestamp>/<recipe-PF>/stats - # we want to copy only the leaf folders with the stats, otherwise the commit diff - # will be hard to read (if it includes the timestamps which changes everyday) - find $buildstats_dir/*/*/* -type d | xargs -i cp -a {} _buildhistory/buildstats/ - fi - cd _buildhistory git add -A git commit --allow-empty -m "Build : ${BUILD_NUMBER}" |