Refactoring in pipelines to better use salt.groovy lib code
Change-Id: I2643dcdff287384aa623900b7f4b131531d85f49
diff --git a/upgrade-mcp-release.groovy b/upgrade-mcp-release.groovy
index 0efc83d..d423347 100644
--- a/upgrade-mcp-release.groovy
+++ b/upgrade-mcp-release.groovy
@@ -22,7 +22,7 @@
stage("Update Reclass"){
common.infoMsg("Updating reclass model")
salt.cmdRun(venvPepper, "I@salt:master", 'cd /srv/salt/reclass && git pull -r && git submodule update', false)
- salt.runSaltProcessStep(venvPepper, 'I@salt:master', 'cmd.run', ['reclass-salt --top'], null, true)
+ salt.cmdRun(venvPepper, 'I@salt:master', 'reclass-salt --top')
salt.enforceState(venvPepper, "I@salt:master", 'reclass', true)
}
@@ -65,4 +65,4 @@
throw e
}
}
-}
\ No newline at end of file
+}