Set description for aptly pipelines
Change-Id: Icdfefa8e2e636c1f13d2f5a7abbe720d13e4f68e
diff --git a/aptly-promote-pipeline.groovy b/aptly-promote-pipeline.groovy
index c196ccd..31390b0 100644
--- a/aptly-promote-pipeline.groovy
+++ b/aptly-promote-pipeline.groovy
@@ -43,6 +43,8 @@
throw e
} finally {
common.sendNotification(currentBuild.result,"",["slack"])
+ def _extra_descr = "${SOURCE}=>${TARGET}:\n${COMPONENTS} ${packages}"
+ currentBuild.description = currentBuild.description ? _extra_descr + " " + currentBuild.description : _extra_descr
}
}
-}
\ No newline at end of file
+}