Jenkins API + Maven + Eclipse

52 views
Skip to first unread message

Sverre Moe

unread,
Mar 5, 2015, 6:25:36 AM3/5/15
to jenkins...@googlegroups.com
Since I am not familiar with the Jenkins API, I would like to program my Groovy scripts in Eclipse. Having to check the Javadocs every time is quite tedious.
Having to write the groovy in Jenkins (in a simple text area) and test it by starting the build is taking forever.

I was thinking of creating a maven project, but I cannot find any jar for the Jenkins API in the maven repository.
I did find the jenkins repository http://repo.jenkins-ci.org/public, but finding anything useful jenkins api there was like looking for a needle in a haystack.

        <dependency>
           
<groupId>org.jenking</groupId>
           
<artifactId>jenkins-api</artifactId>
           
<version>1.599</version>
       
</dependency>

Using the Jenkins API in Groovy, I reckon it is the same as making a plugin for Jenkins in Java (Same API)? I could even make my code in Java and use it as is in Groovy.

Looked a little into the following Plugin tutorial. Though found it a bit complex to set up environment for development.


Perhaps I should ask this in Jenkins Developers instead...

James Green

unread,
Mar 5, 2015, 10:39:41 AM3/5/15
to jenkins...@googlegroups.com
I hate to +1 but I'm falling into agreement here. The writing of scripts is largely dependant on api knowledge which most people expect their IDE to auto-complete for them.

Without the Jenkins artefacts in central, this impedes community development.

--
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/328208ad-ab8f-46b1-8c15-55368f845cea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages