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)
+}