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