refactoring : extracted method print_build_status