File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,18 @@ cf d -f $ZQ_APP_NAME
104
104
cd $root /zipkin-server
105
105
mkdir -p build
106
106
READY_FOR_TESTS=" no"
107
+ DOWNLOAD_ZIPKIN=" ${DOWNLOAD_ZIPKIN:- true} "
107
108
108
- if [ -f " build/zipkin.jar" ]; then
109
- echo " Zipkin was downloaded - will continue"
109
+ pushd build
110
+ if [[ " ${DOWNLOAD_ZIPKIN} " == " true" ]]
111
+ echo -e " \nDownloading Zipkin Server"
112
+ rm -rf zipkin.jar || echo " No zipkin.jar to remove"
113
+ curl -sSL https://zipkin.io/quickstart.sh | bash -s
110
114
else
111
- curl -sSL https://zipkin.io/quickstart.sh | bash -s
112
- mv zipkin.jar build/zipkin.jar
115
+ echo " Won't download zipkin - the [DOWNLOAD_ZIPKIN] switch is set to false"
113
116
fi
117
+ popd
118
+
114
119
cf push && READY_FOR_TESTS=" yes"
115
120
116
121
if [[ " ${READY_FOR_TESTS} " == " no" ]] ; then
You can’t perform that action at this time.
0 commit comments