Add components and packages in promotePublish
Change-Id: If2825c8d651cde6723298ae8addd7a930504a130
diff --git a/aptly-promote-pipeline.groovy b/aptly-promote-pipeline.groovy
index 6c84606..7c1cd42 100644
--- a/aptly-promote-pipeline.groovy
+++ b/aptly-promote-pipeline.groovy
@@ -1,11 +1,27 @@
def common = new com.mirantis.mk.Common()
def aptly = new com.mirantis.mk.Aptly()
+
+
+def packages
+try {
+ packages = PACKAGES
+} catch (MissingPropertyException e) {
+ packages = ""
+}
+
+def components
+try {
+ components = COMPONENTS
+} catch (MissingPropertyException e) {
+ components = ""
+}
+
node() {
try{
stage("promote") {
lock("aptly-api") {
wrap([$class: 'AnsiColorBuildWrapper']) {
- aptly.promotePublish(APTLY_URL, SOURCE, TARGET, RECREATE, null, null, DIFF_ONLY)
+ aptly.promotePublish(APTLY_URL, SOURCE, TARGET, RECREATE, components, packages, DIFF_ONLY)
}
}
}