Move to right place getArtifactoryServer
PRODX-31387
Change-Id: I0e3df186e5f84ec26036486960449459d14b673c
diff --git a/src/com/mirantis/mcp/MCPArtifactory.groovy b/src/com/mirantis/mcp/MCPArtifactory.groovy
index da6d508..14bd19f 100644
--- a/src/com/mirantis/mcp/MCPArtifactory.groovy
+++ b/src/com/mirantis/mcp/MCPArtifactory.groovy
@@ -607,3 +607,15 @@
}
return artifactsDescription
}
+
+/**
+ * Get artifactory server object
+ *
+ * @param serverName Artifactory server name
+ */
+def getArtifactoryServer(serverName = ''){
+ if (!serverName) {
+ error ("Artifactory serverName must be specified")
+ }
+ return Artifactory.server(serverName)
+}
diff --git a/src/com/mirantis/mk/Artifactory.groovy b/src/com/mirantis/mk/Artifactory.groovy
index 6705b4b..d126a1b 100644
--- a/src/com/mirantis/mk/Artifactory.groovy
+++ b/src/com/mirantis/mk/Artifactory.groovy
@@ -521,15 +521,3 @@
}
return result
}
-
-/**
- * Get artifactory server object
- *
- * @param serverName Artifactory server name
- */
-def getArtifactoryServer(serverName = ''){
- if (!serverName) {
- error ("Artifactory serverName must be specified")
- }
- return Artifactory.server(serverName)
-}