An efficient way to write jenkins console scripts with an idea
Recently I have to write more and more scripts for jenkins console.
I think some help like syntax highlighting and code completion will make me more productive, especially since I'm new to groovy.
I found there are some good ideas, but the script still are straight lines in the Java-code.
Is there a way to set up a groovy project in eclipse so that I have a jenkins api to complete my code? It would really be great if I could run my script from eclipse.
How do you develop jenkins console scripts?
source to share
Your question already has an answer. You start building a plugin using, say, gradle -jenkins . Build it to keep all libraries in place. Add eclipse plugin support and create eclipse project files (works similarly for intellij).
Create a script and do basic checks. Copy paste to groovy console and run it.
Getting syntax highlighting online will be a big challenge. See if Orion helps . This is eclipse on the web .
source to share