 (defn different-status [_ _]
   {:status (swap! lastStatus swapStatus)})
 
+(defn output-parameters [args ctx]
+  (let [p (support/new-printer)
+        out #(support/print-to-output ctx p %)
+        revision (get args :revision)
+
+        ]
+    (out (str "result from previous step \n" (clojure.pprint/write args :stream nil)))
+
+    (if revision (out (str "Revision entered: " revision))
+                 (out "You did not use the parameterized trigger."))
+    {:status :success}
+    ))
+
 (defn wait-for-git-revision [_ ctx]
+  (let [result
+        (parameterized-trigger {:revision {:desc "Input git revision"}} ctx)]
 
-  (parameterized-trigger {:revision {:desc "Input git revision"}} ctx))
+    (update result :global #(assoc % :revision (:revision result)))))
 
 
 

            [lambdacd.util :as file-util]
            [lambdaui.core :as ui]
            [lambdacd.steps.manualtrigger :refer [wait-for-manual-trigger parameterized-trigger]]
            [lambdacd.runners :as pipeline-runners]))

(defonce lastStatus (atom nil))


                  wait-for-manual-trigger
                  wait-for-git-revision
                  ))
     output-parameters
     output-parameters
     a-lot-output
     (step/alias "i have substeps"
                 (run successfullStep
