From 6943ec207d3401f2ad39169ce8cb43cd8d3bfa08 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sat, 17 Nov 2012 23:38:46 -0600 Subject: [PATCH] * tested version of jenkins script; should work this time --- jenkins | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jenkins b/jenkins index 8770f0288..b80360438 100755 --- a/jenkins +++ b/jenkins @@ -1,5 +1,7 @@ #!/bin/bash +GEM_SERVER=http://localhost:9000/gems + echo "starting build..." ./build @@ -7,10 +9,10 @@ if [ "$?" = "0" ]; then echo "build succeeded" echo "publishing gem" pushd "target/ruby_package" - curl -f -T *.gem http://localhost:9000/gems + find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \; if [ "$?" != "0" ]; then - "publish failed" + echo "publish failed" exit 1 fi popd