def rebuild!
      unless project = ::Juici::Project.where(name: params[:project]).first
        not_found
      end
      unless build = ::Juici::Build.where(parent: project.name, _id: params[:id]).first
        not_found
      end

      ::Juici::Build.new_from(build).tap do |new_build|
        new_build.save!
        $build_queue << new_build
        $build_queue.bump!
      end
    end
def rebuild!
      unless project = ::Juici::Project.where(name: params[:project]).first
        not_found
      end
      unless build = ::Juici::Build.where(parent: project.name, _id: params[:id]).first
        not_found
      end

      ::Juici::Build.new_from(build).tap do |new_build|
        new_build.save!
        $build_queue << new_build
        $build_queue.bump!
      end
    end
Find an existing build, duplicate the sane parts of it.