Search code examples
eclipsejenkinsgroovyidejenkins-pipeline

Develop jenkins groovy script in Eclipse


Is it possible to develop a groovy script (pipeline) for Jenkins in Eclipse? I want to connect to a running Jenkins instance and create / start some jobs. How can i achieve this?


Solution

  • Jenkins does not have strong IDE support in any IDE. However, Eclipse (as well as most major java IDE's) does have a groovy plugin and you can import the core jenkins jars to get some auto-completion. At the very least, the IDE gives you autoformatting, with is of some help. Once you've developed your script, you will have to copy it out to jenkins to test.