From: Tim Rozet Date: Wed, 10 Oct 2018 18:27:28 +0000 (-0400) Subject: CPERF: Do not remove docker images in clean X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F63381%2F1;p=releng.git CPERF: Do not remove docker images in clean Removing the cperf docker image in clean just adds more overhead to the next cperf run, because the entire docker image has to be re-downloaded. Docker pull will automatically download the difference between the old image and the new image (less bandwidth) so there is no reason to remove the image. Change-Id: I79ba2af20e3bdacfedc28d468fb629e040d7098f Signed-off-by: Tim Rozet --- diff --git a/jjb/cperf/cperf-ci-jobs.yaml b/jjb/cperf/cperf-ci-jobs.yaml index efcf51faa..61bdebd34 100644 --- a/jjb/cperf/cperf-ci-jobs.yaml +++ b/jjb/cperf/cperf-ci-jobs.yaml @@ -204,17 +204,6 @@ docker ps -a | grep opnfv/cperf | awk '{print $1}' | xargs docker rm -f >${redirect} fi - # Remove existing images if exist - if [[ ! -z $(docker images | grep opnfv/cperf) ]]; then - echo "Docker images to remove:" - docker images | head -1 && docker images | grep opnfv/cperf >${redirect} - image_tags=($(docker images | grep opnfv/cperf | awk '{print $2}')) - for tag in "${image_tags[@]}"; do - echo "Removing docker image opnfv/cperf:$tag..." - docker rmi opnfv/cperf:$tag >/dev/null - done - fi - - builder: name: cperf-upload-logs-csit builders: