summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-05-06 13:06:16 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-05-06 13:09:43 +0200
commit38bb1d85c3fa0ee9ee6d7ebfb47f3c972bef5386 (patch)
treeccb379b498a74c9cf50561847ff7fcebe2d296e9
parent5ddc590c0d795c6ec5b9b99072144419726e8ef5 (diff)
Functest, redirect to /dev/null the output of some docker commands
That output is irrelevant and doesn't help to debug anything, and it is very extensive. Change-Id: If97ff388d5ab53c67d7cd5c5e6f2fff1f202e6a4 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
-rw-r--r--jjb/functest/functest-ci-jobs.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/jjb/functest/functest-ci-jobs.yml b/jjb/functest/functest-ci-jobs.yml
index 8bcf4c9de..bbdba9fa3 100644
--- a/jjb/functest/functest-ci-jobs.yml
+++ b/jjb/functest/functest-ci-jobs.yml
@@ -298,12 +298,11 @@
test -f ${HOME}/opnfv/functest/custom/params_${DOCKER_TAG} && custom_params=$(cat ${HOME}/opnfv/functest/custom/params_${DOCKER_TAG})
echo "Functest: Pulling image opnfv/functest:${DOCKER_TAG}"
- docker pull opnfv/functest:$DOCKER_TAG >${redirect}
+ docker pull opnfv/functest:$DOCKER_TAG >/dev/null
cmd="sudo docker run --privileged=true -id ${envs} ${labconfig} ${sshkey} ${res_volume} ${custom_params} opnfv/functest:${DOCKER_TAG} /bin/bash"
echo "Functest: Running docker run command: ${cmd}"
${cmd} >${redirect}
- docker ps -a >${redirect}
sleep 5
container_id=$(docker ps | grep "opnfv/functest:${DOCKER_TAG}" | awk '{print $1}' | head -1)
echo "Container ID=${container_id}"
@@ -355,6 +354,6 @@
image_tags=($(docker images | grep opnfv/functest | awk '{print $2}'))
for tag in "${image_tags[@]}"; do
echo "Removing docker image opnfv/functest:$tag..."
- docker rmi opnfv/functest:$tag >${redirect}
+ docker rmi opnfv/functest:$tag >/dev/null
done
fi