[artifactory-replicator] Avoid using the "-replicate" option if the "-bin-cleanup" option is set
Related: PRODX-48005
Change-Id: I5224d0fd7ee7cc1e4199f347f641dc93d7d055db
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index f6dd448..c0480c1 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -1697,8 +1697,8 @@
if (env[e.key] == null) {
continue
}
- if (e.key == 'CHECK_REPOS' || e.key == 'DOCKER_CLEAN') {
- // Avoid CHECK_REPOS=true and DOCKER_CLEAN=true
+ if (e.key == 'CHECK_REPOS' || e.key == 'DOCKER_CLEAN' || e.key == 'BINARY_CLEAN') {
+ // Avoid assigning values to boolean options
if (env[e.key].toBoolean() && !isCheckClean) {
cmdParams += e.value + ' '
isCheckClean = true