Hi Patrick

i tried your code, but i get an error saying RepositoriesUtils cannot be
resolved.
what am I missing?
is there some external reference that need to be added? if yes, how?

Thanks,
-eff


Patrik.Schalin wrote
> 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-tp7580070p7580171.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to