           {:text "rebuild"
            :loading-text "Rebuilding..."
            :icon-name "Rebuild"
-           :on-click #(do
-                        (raise-build-action! :retry-build-clicked)
-                        ((om/get-shared owner :track-event) {:event-type :rebuild-clicked
-                                                             :properties {:component "build-row"
-                                                                          :is-ssh false
-                                                                          :is-no-cache true}}))})
+           :on-click #(rebuild! [:retry-build-clicked build-args])})
         :else nil)]
      
      [:div.build-info

           :loading-text "Cancelling..."
           :icon-name "Status-Canceled"
           :on-click #(do
                        (raise-build-action! :cancel-build-clicked)
                        ((om/get-shared owner :track-event) {:event-type :cancel-build-clicked}))})

        should-show-rebuild?

                                                           :properties {:status-words status-words}})}
       (build-status-badge build)]

      ;; Actions should be mutually exclusive. Just in case they
      ;; aren't, use a cond so it doesn't try to render both in the
      ;; same place
