Nevermind, found it. :)
Works well by using RepositoriesUtils.
Here's my working DSL code snippet if any of you is looking for similar;
*import org.jfrog.hudson.util.*
def servers = RepositoriesUtils.getArtifactoryServers()
def server = RepositoriesUtils.getArtifactoryServer('<SERVER-URL>', servers)
println server.name*
/Patrik
--
View this message in context:
http://forums.jfrog.org/Artifactory-and-Jenkins-Job-DSL-plugin-tp7580070p7580071.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users