From: Zhijiang Hu Date: Tue, 25 Apr 2017 09:04:04 +0000 (-0400) Subject: Print out error message of docker commands X-Git-Tag: opnfv-5.0.RC1~103^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=08ed20c767831124fc241c0d2812e31c649aa5fe;p=daisy.git Print out error message of docker commands This print out error message of docker commands to find out the reason of error like[1] [1] https://build.opnfv.org/ci/job/daisy-build-daily-master/239/consoleFull Change-Id: Ic1bd85d999dbe584764bc9a05d22579835e55516 Signed-off-by: Zhijiang Hu --- diff --git a/ci/build_rpm/build_rpms.sh b/ci/build_rpm/build_rpms.sh index db5a42e9..e4b0cae9 100755 --- a/ci/build_rpm/build_rpms.sh +++ b/ci/build_rpm/build_rpms.sh @@ -36,9 +36,9 @@ function cleanup_container { ${containers_to_kill} | egrep -v '(^\s*$)' | sort | uniq) echo "Stopping containers... $containers_to_kill" - (sudo docker stop -t 2 ${containers_to_kill} 2>&1) > /dev/null + sudo docker stop -t 2 ${containers_to_kill} echo "Removing containers... $containers_to_kill" - (sudo docker rm -v -f ${containers_to_kill} 2>&1) > /dev/null + sudo docker rm -v -f ${containers_to_kill} if [[ ! -z "$volumes_to_remove" ]]; then echo "Removing volumes... $volumes_to_remove"