diff options
author | 2017-04-25 05:04:04 -0400 | |
---|---|---|
committer | 2017-04-25 05:04:04 -0400 | |
commit | 08ed20c767831124fc241c0d2812e31c649aa5fe (patch) | |
tree | 272846771848693bd71dd22dda4169031689a65a /ci/build_rpm/build_rpms.sh | |
parent | 3265b49f45d31d0e83e25aa61c0c22a19b44c4bf (diff) |
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 <hu.zhijiang@zte.com.cn>
Diffstat (limited to 'ci/build_rpm/build_rpms.sh')
-rwxr-xr-x | ci/build_rpm/build_rpms.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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" |