Using salt-pepper to connect SALT_MASTER from Jenkins slaves
Due to specific Jenkins behavior of groovy interpreter it is impossible
to connect to SALT_MASTER_IP from Jenkins slaves. The solution has been
suggested by Jakub Josef so in order to cope with this issue salt-pepper
is used to connect to SALT_MASTER_IP from slaves.
Change-Id: I6537de0937383f6688224e609cb730e62a993b37
diff --git a/src/com/mirantis/mk/Python.groovy b/src/com/mirantis/mk/Python.groovy
index b95275f..29f471f 100644
--- a/src/com/mirantis/mk/Python.groovy
+++ b/src/com/mirantis/mk/Python.groovy
@@ -283,3 +283,13 @@
echo(data)
return data
}
+
+/**
+ * Install salt-pepper in isolated environment
+ *
+ * @param path Path where virtualenv is created
+ */
+def setupPepperVirtualenv(path) {
+ requirements = ['salt-pepper']
+ setupVirtualenv(path, 'python2', requirements)
+}
\ No newline at end of file