           {: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?


(defn build-row [{:keys [build project]} owner {:keys [show-actions? show-branch? show-project?]}]
  (let [url (build-model/path-for (select-keys build [:vcs_url]) build)
        rebuild! #(raise! owner %)
        build-args (merge (build-model/build-args build) {:component "build-row" :is-no-cache false})
        status-words (build-model/status-words build)
        should-show-cancel? (and (project-model/can-trigger-builds? project)
                                 (build-model/can-cancel? build))
