From ba56b767edab4fb35b486166e6bba00fee675ad6 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Wed, 10 Oct 2018 14:27:28 -0400 Subject: 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 --- jjb/cperf/cperf-ci-jobs.yaml | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'jjb/cperf') 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: -- cgit