From 154eb64a398cd0fd193b9ea63d22acb90dfd51a0 Mon Sep 17 00:00:00 2001 From: Kris De Volder Date: Wed, 5 Jun 2019 14:42:32 -0700 Subject: [PATCH] Add nohttp script --- nohttp.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 nohttp.sh diff --git a/nohttp.sh b/nohttp.sh new file mode 100755 index 000000000..3db94056d --- /dev/null +++ b/nohttp.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e +VERSION=0.0.2.RELEASE +if [ ! -z ${bamboo_JDK8_HOME} ]; then + # put java 8 on the path when running on bamboo + echo "Running on bamboo. Put JDK on path: ${bamboo_JDK8_HOME}/bin" + export PATH=${bamboo_JDK8_HOME}/bin/:${PATH} +fi +if [ ! -f nohttp-cli-${VERSION}.jar ]; then + curl -s -O https://repo.maven.apache.org/maven2/io/spring/nohttp/nohttp-cli/${VERSION}/nohttp-cli-${VERSION}.jar +fi +java -jar nohttp-cli-${VERSION}.jar