Added pipelines previously defined in mk-ci-salt-model
Change-Id: Id759cf59d029b3d7d9e1fbd13abf875b6737ebc4
diff --git a/aptly-promote-pipeline.groovy b/aptly-promote-pipeline.groovy
new file mode 100644
index 0000000..6c84606
--- /dev/null
+++ b/aptly-promote-pipeline.groovy
@@ -0,0 +1,19 @@
+def common = new com.mirantis.mk.Common()
+def aptly = new com.mirantis.mk.Aptly()
+node() {
+ try{
+ stage("promote") {
+ lock("aptly-api") {
+ wrap([$class: 'AnsiColorBuildWrapper']) {
+ aptly.promotePublish(APTLY_URL, SOURCE, TARGET, RECREATE, null, null, DIFF_ONLY)
+ }
+ }
+ }
+ } catch (Throwable e) {
+ // If there was an error or exception thrown, the build failed
+ currentBuild.result = "FAILURE"
+ throw e
+ } finally {
+ common.sendNotification(currentBuild.result,"",["slack"])
+ }
+}
\ No newline at end of file