Skip to content

Commit

Permalink
Merge pull request kubernetes#6339 from zmerlynn/skip_paranoia
Browse files Browse the repository at this point in the history
Skip cleaning docker cache prior to build
  • Loading branch information
Quinton Hoole committed Apr 2, 2015
2 parents 1ff0a1e + 6ba14f1 commit 46e5ec3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions hack/jenkins/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ export PATH=$PATH:/usr/local/go/bin
export KUBE_RELEASE_RUN_TESTS=n
export KUBE_SKIP_CONFIRMATIONS=y

# Clean stuff out. Assume the worst - the last build may have left the
# tree in an odd state. There's a Jenkins git clean plugin, but we
# have the docker images to worry about as well, so be really pedantic
# about cleaning.
# Clean stuff out. Assume the last build left the tree in an odd
# state.
rm -rf ~/.kube*
make clean
git clean -fdx
docker ps -aq | xargs -r docker rm
docker images -q | xargs -r docker rmi

# Uncomment if you want to purge the Docker cache completely each
# build. It costs about 150s each build to pull the golang image and
# rebuild the kube-build:cross image, but these rarely change.
# docker ps -aq | xargs -r docker rm
# docker images -q | xargs -r docker rmi

# Build
go run ./hack/e2e.go -v --build
Expand Down

0 comments on commit 46e5ec3

Please sign in to comment.