commit | 6f0dee67487da7656b9467bf5712ad7a47cac37d | [log] [tgz] |
---|---|---|
author | mcp-jenkins <mcp-jenkins@mirantis.com> | Fri Jul 19 09:34:00 2019 +0000 |
committer | Gerrit Code Review <mail@domain.com> | Fri Jul 19 09:34:00 2019 +0000 |
tree | dd7475a2fa9917f722bc8fb5add88f41c774276f | |
parent | 673a1fbe711275ff20b7cdfdea90515fb1743801 [diff] | |
parent | ed8709c8168248f559e69ca31aafd316acac142f [diff] |
Merge "Add condition for docker pull operation"
diff --git a/src/com/mirantis/mk/SaltModelTesting.groovy b/src/com/mirantis/mk/SaltModelTesting.groovy index 8fe116f..1b9b3e8 100644 --- a/src/com/mirantis/mk/SaltModelTesting.groovy +++ b/src/com/mirantis/mk/SaltModelTesting.groovy
@@ -118,7 +118,11 @@ } def img = docker.image(dockerImageName) - img.pull() + def pull_enabled = config.get('dockerPull', true) + + if ( pull_enabled ) { + img.pull() + } try { img.inside(dockerOptsFinal) {