Refactor structure of Pipeline library

* Moved everything under com.mirantis.mcp package
* Functions are grouped under different files, each with specific
  functionality (e.g Artifactory, Docker, Git, etc)
* Tools.groovy remains as is to avoid breaking existing jobs that
  use it

Next steps:
* Modify existing pipelines to use functions from new package
* Gradually get rid of Tools.groovy

Change-Id: I56386f994666baa1c6db51b27beef4de4284ecb8
diff --git a/src/com/mirantis/mcp/Common.groovy b/src/com/mirantis/mcp/Common.groovy
new file mode 100644
index 0000000..847c851
--- /dev/null
+++ b/src/com/mirantis/mcp/Common.groovy
@@ -0,0 +1,20 @@
+package com.mirantis.mcp
+
+/**
+ * https://issues.jenkins-ci.org/browse/JENKINS-26481
+ * fix groovy List.collect()
+ **/
+@NonCPS
+def constructString(ArrayList options, String keyOption, String separator = " ") {
+    return options.collect { keyOption + it }.join(separator).replaceAll("\n", "")
+}
+
+/**
+ * Generate current timestamp
+ *
+ * @param format Defaults to yyyyMMddHHmmss
+ */
+def getDatetime(format = "yyyyMMddHHmmss") {
+    def now = new Date();
+    return now.format(format, TimeZone.getTimeZone('UTC'));
+}
\ No newline at end of file