Add option for storage for Aptly promotion
Change-Id: I6e3ed22f91c9cf40d9694c4a59647b792722fc66
diff --git a/src/com/mirantis/mk/Aptly.groovy b/src/com/mirantis/mk/Aptly.groovy
index 1ab5b38..b92efd6 100644
--- a/src/com/mirantis/mk/Aptly.groovy
+++ b/src/com/mirantis/mk/Aptly.groovy
@@ -72,7 +72,7 @@
sh("aptly-publisher --dry --url ${server} promote --source ${source} --target ${target} --diff ${opts}")
}
-def promotePublish(server, source, target, recreate=false, components=null, packages=null, diff=false, opts='-d --timeout 600', dump_publish=false) {
+def promotePublish(server, source, target, recreate=false, components=null, packages=null, diff=false, opts='-d --timeout 600', dump_publish=false, storage="") {
if (components && components != "all" && components != "") {
def componentsStr = components.replaceAll(",", " ")
opts = "${opts} --components ${componentsStr}"
@@ -88,6 +88,10 @@
opts = "${opts} --dry --diff"
}
+ if (storage && storage != "") {
+ opts = "${opts} --storage ${storage}"
+ }
+
if (dump_publish) {
def now = new Date();
def timestamp = now.format("yyyyMMddHHmmss", TimeZone.getTimeZone('UTC'));