Added pipelines previously defined in mk-ci-salt-model
Change-Id: Id759cf59d029b3d7d9e1fbd13abf875b6737ebc4
diff --git a/test-salt-models-pipeline.groovy b/test-salt-models-pipeline.groovy
new file mode 100644
index 0000000..ebc99c9
--- /dev/null
+++ b/test-salt-models-pipeline.groovy
@@ -0,0 +1,24 @@
+def common = new com.mirantis.mk.Common()
+def gerrit = new com.mirantis.mk.Gerrit()
+
+node("python") {
+ try{
+ stage("checkout") {
+ gerrit.gerritPatchsetCheckout ([
+ credentialsId : CREDENTIALS_ID
+ ])
+ sh("git submodule init; git submodule sync; git submodule update --recursive")
+ }
+ stage("test") {
+ wrap([$class: 'AnsiColorBuildWrapper']) {
+ sh("make test")
+ }
+ }
+ } 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