Create an empty plugin template

51 views
Skip to first unread message

Curtis Babbie

unread,
Mar 27, 2024, 11:51:51 PM3/27/24
to Jenkins Developers
Hello,

I'm trying to start a new Jenkins plugin project and was hoping to create an empty plugin template to which I could start my development work.  I was following the development documentation and attempted to select the archetype: empty-plugin but it doesn't appear to work.

Please advise any other options or recommendations


Mark Waite

unread,
Mar 27, 2024, 11:57:30 PM3/27/24
to Jenkins Developers
"It doesn't appear to work" is very difficult to diagnose.   You'll need to provide more details of what you tried to do and what were the results.

Using Apache Maven 3.9.6 and Eclipse Temurin Java 21.0.2 I was able to create an empty plugin by following the instructions from the Creating a new plugin page.  The commands that I ran were:

mvn archetype:generate -Dfilter=io.jenkins.archetypes:empty-plugin

I answered the prompts as noted in the Create a plugin tutorial.  The resulting plugin compiled and passed its automated tests.

Mark Waite

Owen Rubel

unread,
Mar 28, 2024, 12:39:32 AM3/28/24
to jenkin...@googlegroups.com
No gradle instructions?? Not being a purist or anything but many will have these instructions side by side.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/922724f3-1850-4985-9d9f-7aa5cd15e73dn%40googlegroups.com.

Mark Waite

unread,
Mar 28, 2024, 10:51:16 PM3/28/24
to Jenkins Developers
On Wednesday, March 27, 2024 at 10:39:32 PM UTC-6 Owen wrote:
No gradle instructions?? Not being a purist or anything but many will have these instructions side by side.


Jenkins plugin development tools are focused on Apache Maven.  We have a very small set of plugins that are maintained with gradle.  Those plugins struggle to keep pace with the tool changes that are made in the Apache Maven tooling.

We don't post a "Create a plugin" tutorial based on Gradle.  We don't have a tutorial based on Gradle.

Mark Waite

Curtis Babbie

unread,
Apr 3, 2024, 5:39:28 PM4/3/24
to Jenkins Developers
Thanks for the additional information, it appears there was an issue with my environment trying to run through mobaxterm.  When I tried it via a standard terminal shell it ran correctly..
Reply all
Reply to author
Forward
0 new messages