Groovy scripts

44 views
Skip to first unread message

Gilad Baruchian

unread,
May 18, 2015, 4:54:36 AM5/18/15
to jenkins...@googlegroups.com
I have groovy scripts that work in my jenkins instance.
I would like to be able to also run them from IntelliJ, but it seems like i need the jenkins jars for the imports to work (for example import hudson.model.*).

1. How can I get all the Jars I need to run jenkins groovy code?
2. Do you know of any good tutorials to learn about using the jenkins libraries ?

Thanks.
Message has been deleted
Message has been deleted

niraj nandane

unread,
May 21, 2015, 3:12:04 AM5/21/15
to jenkins...@googlegroups.com
You can start with using jenkins api first.

Gilad Baruchian

unread,
Jun 7, 2015, 11:47:28 AM6/7/15
to jenkins...@googlegroups.com
I would love to use the API, the problem is that i don't have the jars for that and i couldn't find them anywhere.

Baptiste Mathus

unread,
Jun 7, 2015, 2:24:59 PM6/7/15
to jenkins...@googlegroups.com

Jars are the Jenkins ones, or plugins if that's your case.
Simplest way can be to create a fake plugin, then import it in your ide to be able to use the class browsing facilities. For example m2e in eclipse will help you will with the pom parsing and library import.

Cheers

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c8b89b24-7d27-4e94-b77d-9d2b1d3db092%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages