From 13d6d6ab2e5ed9450bf661ec7bad1da4ef4ac322 Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Mon, 26 Nov 2018 16:28:35 +0100 Subject: [PATCH] wedder-kill-previous is always successful --- src/wanijo_pipeline/wedder_pipeline.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wanijo_pipeline/wedder_pipeline.clj b/src/wanijo_pipeline/wedder_pipeline.clj index b66078d..037b48b 100644 --- a/src/wanijo_pipeline/wedder_pipeline.clj +++ b/src/wanijo_pipeline/wedder_pipeline.clj @@ -11,7 +11,8 @@ (lcd-shell/bash ctx "/opt/wedder" "lein uberjar")) (defn kill-previous [args ctx] - (lcd-shell/bash ctx (:cwd args) "pkill -f wedder")) + (lcd-shell/bash ctx (:cwd args) "pkill -f wedder") + {:status :success}) (defn deploy [args ctx] (lcd-shell/bash ctx "/opt/wedder" "nohup java -jar target/wedder-0.1.0-SNAPSHOT-standalone.jar"))