24
24
#
25
25
set -euo pipefail
26
26
27
- #
28
- # For continuous integration log purposes, wget prints its own output to stderr
29
- # so it can be convenient to redirect it to a file. This can be done directly
30
- # at runtime.
31
- #
32
-
33
27
PROBE_NAME=$1
34
28
PROBE_VERSION=$2
35
29
REPOSITORY_NAME=$3
@@ -140,7 +134,7 @@ function coreos_build_old {
140
134
cd $COREOS_DIR
141
135
142
136
if [ ! -f config_orig ]; then
143
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} ${VERSION_URL} coreos_developer_container.bin.bz2
137
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} ${VERSION_URL} coreos_developer_container.bin.bz2
144
138
bunzip2 coreos_developer_container.bin.bz2
145
139
sudo kpartx -asv coreos_developer_container.bin
146
140
LOOPDEV=$( sudo kpartx -asv coreos_developer_container.bin | cut -d\ -f 3)
@@ -162,7 +156,7 @@ function coreos_build_old {
162
156
KERNEL_URL=https://www.kernel.org/pub/linux/kernel/v${MAJOR} .x/$TGZ_NAME
163
157
164
158
if [ ! -f $TGZ_NAME ]; then
165
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} $KERNEL_URL
159
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} $KERNEL_URL
166
160
fi
167
161
168
162
if [ ! -d $DIR_NAME ]; then
@@ -197,7 +191,7 @@ function coreos_build_new {
197
191
cd $COREOS_DIR
198
192
199
193
if [ ! -f coreos_developer_container.bin ]; then
200
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} ${VERSION_URL} coreos_developer_container.bin.bz2
194
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} ${VERSION_URL} coreos_developer_container.bin.bz2
201
195
bunzip2 coreos_developer_container.bin.bz2
202
196
fi
203
197
@@ -257,7 +251,7 @@ function boot2docker_build {
257
251
258
252
if [ ! -f $TGZ_NAME ]; then
259
253
echo Downloading $TGZ_NAME [Boot2Docker]
260
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} $KERNEL_URL
254
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} $KERNEL_URL
261
255
fi
262
256
263
257
if [ ! -d $DIR_NAME ]; then
@@ -280,7 +274,7 @@ function boot2docker_build {
280
274
; do \
281
275
patch -p1 < " $patch " ; \
282
276
done
283
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} -O .config $KERNEL_CONFIG
277
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} -O .config $KERNEL_CONFIG
284
278
cp .config ../config-orig
285
279
make olddefconfig
286
280
make modules_prepare
@@ -319,7 +313,7 @@ function ubuntu_build {
319
313
320
314
if [ ! -f $DEB ]; then
321
315
echo Downloading $DEB [Ubuntu]
322
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} $URL
316
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} $URL
323
317
dpkg -x $DEB ./
324
318
fi
325
319
@@ -361,7 +355,7 @@ function rhel_build {
361
355
362
356
if [ ! -f $RPM ]; then
363
357
echo Downloading $RPM [RHEL and CentOS]
364
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} $URL
358
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} $URL
365
359
rpm2cpio $RPM | cpio -idm
366
360
fi
367
361
@@ -399,7 +393,7 @@ function debian_build {
399
393
fi
400
394
if [ ! -f ${BASEDIR} /common-dependencies/debian/kbuild/${DEB} ]; then
401
395
echo Downloading ${DEB} [Debian]
402
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} -P ${BASEDIR} /common-dependencies/debian/kbuild ${URL}
396
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} -P ${BASEDIR} /common-dependencies/debian/kbuild ${URL}
403
397
fi
404
398
return
405
399
else
@@ -421,7 +415,7 @@ function debian_build {
421
415
422
416
if [ ! -f ${DEB} ]; then
423
417
echo Downloading ${DEB} [Debian]
424
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} ${URL}
418
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} ${URL}
425
419
dpkg -x ${DEB} ./
426
420
fi
427
421
fi
@@ -478,7 +472,7 @@ function minikube_build {
478
472
MINIKUBE_DIR=${MINIKUBE_BASEDIR} /minikube-$( echo ${VERSION} | sed ' s/^v//' )
479
473
480
474
if [ ! -d ${MINIKUBE_DIR} ]; then
481
- wget -P ${MINIKUBE_BASEDIR} --timeout=${URL_TIMEOUT} --tries=${RETRY} https://github.com/kubernetes/minikube/archive/${VERSION} .tar.gz
475
+ wget -nv - P ${MINIKUBE_BASEDIR} --timeout=${URL_TIMEOUT} --tries=${RETRY} https://github.com/kubernetes/minikube/archive/${VERSION} .tar.gz
482
476
tar -C ${MINIKUBE_BASEDIR} -zxf ${MINIKUBE_BASEDIR} /${VERSION} .tar.gz
483
477
rm -f ${MINIKUBE_BASEDIR} /${VERSION} .tar.gz
484
478
fi
@@ -503,7 +497,7 @@ function minikube_build {
503
497
export KERNELDIR=${MINIKUBE_BASEDIR} /linux-${MINIKUBE_KERNEL_VERSION}
504
498
505
499
if [ ! -d ${KERNELDIR} ]; then
506
- wget -P ${MINIKUBE_BASEDIR} --timeout=${URL_TIMEOUT} --tries=${RETRY} https://www.kernel.org/pub/linux/kernel/v${MAJOR} .x/${TGZ_NAME}
500
+ wget -nv - P ${MINIKUBE_BASEDIR} --timeout=${URL_TIMEOUT} --tries=${RETRY} https://www.kernel.org/pub/linux/kernel/v${MAJOR} .x/${TGZ_NAME}
507
501
tar -C ${MINIKUBE_BASEDIR} -xf ${MINIKUBE_BASEDIR} /${TGZ_NAME}
508
502
rm -f ${MINIKUBE_BASEDIR} /${TGZ_NAME}
509
503
fi
0 commit comments