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
@@ -156,7 +150,7 @@ function coreos_build_old {
156
150
cd $COREOS_DIR
157
151
158
152
if [ ! -f config_orig ]; then
159
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} ${VERSION_URL} coreos_developer_container.bin.bz2
153
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} ${VERSION_URL} coreos_developer_container.bin.bz2
160
154
bunzip2 coreos_developer_container.bin.bz2
161
155
sudo kpartx -asv coreos_developer_container.bin
162
156
LOOPDEV=$( sudo kpartx -asv coreos_developer_container.bin | cut -d\ -f 3)
@@ -178,7 +172,7 @@ function coreos_build_old {
178
172
KERNEL_URL=https://www.kernel.org/pub/linux/kernel/v${MAJOR} .x/$TGZ_NAME
179
173
180
174
if [ ! -f $TGZ_NAME ]; then
181
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} $KERNEL_URL
175
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} $KERNEL_URL
182
176
fi
183
177
184
178
if [ ! -d $DIR_NAME ]; then
@@ -215,7 +209,7 @@ function coreos_build_new {
215
209
cd $COREOS_DIR
216
210
217
211
if [ ! -f coreos_developer_container.bin ]; then
218
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} ${VERSION_URL} coreos_developer_container.bin.bz2
212
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} ${VERSION_URL} coreos_developer_container.bin.bz2
219
213
bunzip2 coreos_developer_container.bin.bz2
220
214
fi
221
215
@@ -277,7 +271,7 @@ function boot2docker_build {
277
271
278
272
if [ ! -f $TGZ_NAME ]; then
279
273
echo Downloading $TGZ_NAME [Boot2Docker]
280
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} $KERNEL_URL
274
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} $KERNEL_URL
281
275
fi
282
276
283
277
if [ ! -d $DIR_NAME ]; then
@@ -300,7 +294,7 @@ function boot2docker_build {
300
294
; do \
301
295
patch -p1 < " $patch " ; \
302
296
done
303
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} -O .config $KERNEL_CONFIG
297
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} -O .config $KERNEL_CONFIG
304
298
cp .config ../config-orig
305
299
make olddefconfig
306
300
make modules_prepare
@@ -340,7 +334,7 @@ function ubuntu_build {
340
334
341
335
if [ ! -f $DEB ]; then
342
336
echo Downloading $DEB [Ubuntu]
343
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} $URL
337
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} $URL
344
338
dpkg -x $DEB ./
345
339
fi
346
340
@@ -384,7 +378,7 @@ function rhel_build {
384
378
385
379
if [ ! -f $RPM ]; then
386
380
echo Downloading $RPM [RHEL and CentOS]
387
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} $URL
381
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} $URL
388
382
rpm2cpio $RPM | cpio -idm
389
383
fi
390
384
@@ -424,7 +418,7 @@ function debian_build {
424
418
fi
425
419
if [ ! -f ${BASEDIR} /common-dependencies/debian/kbuild/${DEB} ]; then
426
420
echo Downloading ${DEB} [Debian]
427
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} -P ${BASEDIR} /common-dependencies/debian/kbuild ${URL}
421
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} -P ${BASEDIR} /common-dependencies/debian/kbuild ${URL}
428
422
fi
429
423
return
430
424
else
@@ -446,7 +440,7 @@ function debian_build {
446
440
447
441
if [ ! -f ${DEB} ]; then
448
442
echo Downloading ${DEB} [Debian]
449
- wget --timeout=${URL_TIMEOUT} --tries=${RETRY} ${URL}
443
+ wget -nv - -timeout=${URL_TIMEOUT} --tries=${RETRY} ${URL}
450
444
dpkg -x ${DEB} ./
451
445
fi
452
446
fi
@@ -504,7 +498,7 @@ function minikube_build {
504
498
MINIKUBE_DIR=${MINIKUBE_BASEDIR} /minikube-$( echo ${VERSION} | sed ' s/^v//' )
505
499
506
500
if [ ! -d ${MINIKUBE_DIR} ]; then
507
- wget -P ${MINIKUBE_BASEDIR} --timeout=${URL_TIMEOUT} --tries=${RETRY} https://github.com/kubernetes/minikube/archive/${VERSION} .tar.gz
501
+ wget -nv - P ${MINIKUBE_BASEDIR} --timeout=${URL_TIMEOUT} --tries=${RETRY} https://github.com/kubernetes/minikube/archive/${VERSION} .tar.gz
508
502
tar -C ${MINIKUBE_BASEDIR} -zxf ${MINIKUBE_BASEDIR} /${VERSION} .tar.gz
509
503
rm -f ${MINIKUBE_BASEDIR} /${VERSION} .tar.gz
510
504
fi
@@ -529,7 +523,7 @@ function minikube_build {
529
523
export KERNELDIR=${MINIKUBE_BASEDIR} /linux-${MINIKUBE_KERNEL_VERSION}
530
524
531
525
if [ ! -d ${KERNELDIR} ]; then
532
- wget -P ${MINIKUBE_BASEDIR} --timeout=${URL_TIMEOUT} --tries=${RETRY} https://www.kernel.org/pub/linux/kernel/v${MAJOR} .x/${TGZ_NAME}
526
+ wget -nv - P ${MINIKUBE_BASEDIR} --timeout=${URL_TIMEOUT} --tries=${RETRY} https://www.kernel.org/pub/linux/kernel/v${MAJOR} .x/${TGZ_NAME}
533
527
tar -C ${MINIKUBE_BASEDIR} -xf ${MINIKUBE_BASEDIR} /${TGZ_NAME}
534
528
rm -f ${MINIKUBE_BASEDIR} /${TGZ_NAME}
535
529
fi
0 commit comments