     project_changeset = WP.changeset(project, %{last_build_id: counter})
     {:ok, b} = Repo.insert_or_update(build_changeset)
     {:ok, _p} = Repo.update(project_changeset)
-    {:ok, convert_up b}
+    {:ok, convert_up_build b}
   end
 
   @doc """

  defp create_build(project = %WP{}, build_counter) do
    case Repo.get_by(WB, [project_id: project.id, number: build_counter]) do
      nil -> %WB{project_id: project.id, number: build_counter, id: nil}
      build -> build
    end
  end

  alias BaumeisterWeb.Web.Project, as: WP
  alias BaumeisterWeb.Web.Build, as: WB
  alias Ecto.Changeset
  alias Baumeister.BuildEvent

  @doc """
