Merge "Remove no-cache option in build.py"

This commit is contained in:
Jenkins 2016-09-21 12:06:43 +00:00 committed by Gerrit Code Review
commit c57642f649
2 changed files with 1 additions and 3 deletions

View File

@ -92,8 +92,6 @@ _CLI_OPTS = [
cfg.BoolOpt('cache', default=True,
help='Use the Docker cache when building',
),
cfg.BoolOpt('no-cache', default=False,
help='Do not use the Docker cache when building'),
cfg.MultiOpt('profile', types.String(), short='p',
help=('Build a pre-defined set of images, see [profiles]'
' section in config. The default profiles are:'

View File

@ -247,7 +247,7 @@ class BuildTask(DockerTask):
self.conf = conf
self.image = image
self.push_queue = push_queue
self.nocache = not conf.cache or conf.no_cache
self.nocache = not conf.cache
self.forcerm = not conf.keep
self.logger = image.logger