I am using IntelliJ IDEA to edit the workflow-plugin groovy scripts for my Jenkins build. This works great for the generic groovy parts of the build script. However, IntelliJ by itself has no knowledge of the workflow-plugin steps called from groovy so it can't suggest any completion or show the underlying Javadoc. However, if you define a suitable .gdsl file for workflow-plugin, it could. For example, I ran into an issue earlier today with the readFile step. I blindly copied some text from
another posting to the Jenkins users group. It took some time to determine that the named parameters were wrong. Yes, the snippit generator on the Jenkins web page helps somewhat, but for me, Javadoc is better.
Has anyone created one of these for workflow-plugin? I think it would be a great help for learning about how to use these build steps.
For reference:
https://confluence.jetbrains.com/display/GRVY/Scripting+IDE+for+DSL+awareness#ScriptingIDEforDSLawareness-DescribingGroovyDSLinternallanguageinitsownterms