Custom Builder not available as a build-step - How to diagnose?

17 views
Skip to first unread message

Brian Sayatovic

unread,
Mar 5, 2014, 2:23:13 PM3/5/14
to jenkin...@googlegroups.com
I'm trying to make a new build-step (for some custom pre-build versioning needs), but my new builder isn't appearing in the list of available build steps.  I've written an SCM plugin before, but a Builder is a new experience for me.

I started from the HelloWorld Builder plugin sample, and my descriptor's isApplicable method is hard-coded to return true (for now).  I'm running with the "hpi:run" Maven goal.  My Builder doesn''t appear in the Build-step drop down, yet my plugin shows as being installed and the log shows no errors.  I've scoured the web and even compared to some other plugins from the wild, but I can't understand why my plugin is seemingly defunct.

What diagnostic steps can I perform to figure this out?

Emanuele Zattin

unread,
Mar 5, 2014, 2:37:43 PM3/5/14
to jenkin...@googlegroups.com

I had the same problem a month ago and it got solved with an mvn clean :-) if that does not work you could share the code if possible so it would be easier to help.

Emanuele

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Brian Sayatovic

unread,
Mar 5, 2014, 2:43:59 PM3/5/14
to jenkin...@googlegroups.com
I'll try the clean for starters!

FWIW, I also manually added my class name to the config.xml for a test job and my config.jelly did show up!  But when I saved, it was removed from the config.xml file :-(

Regarding sharing the code, I can easily paste snippets here.  Is there a batter way to share?

Brian Sayatovic

unread,
Mar 5, 2014, 3:03:23 PM3/5/14
to jenkin...@googlegroups.com
Wow, that did it!  Thanks much!

Christian Willman

unread,
Mar 6, 2014, 3:09:38 AM3/6/14
to jenkin...@googlegroups.com
Are you trying to use Eclipse with m2eclipse by any chance? I've been bitten by very near the same issue before. Turns out Jenkins plugins and m2eclipse just don't play nicely.

Emanuele Zattin

unread,
Mar 6, 2014, 3:19:29 AM3/6/14
to jenkin...@googlegroups.com
I think it is intrinsic in the maven general suckiness... I had the same problem with Intellij IDEA and the CLI :)

Emanuele Zattin
---------------------------------------------------
-I don't have to know an answer. I don't feel frightened by not knowing things; by being lost in a mysterious universe without any purpose — which is the way it really is, as far as I can tell, possibly. It doesn't frighten me.- Richard Feynman


On Thu, Mar 6, 2014 at 9:09 AM, Christian Willman <cew...@gmail.com> wrote:
Are you trying to use Eclipse with m2eclipse by any chance? I've been bitten by very near the same issue before. Turns out Jenkins plugins and m2eclipse just don't play nicely.

--

Brian Sayatovic

unread,
Mar 6, 2014, 6:28:33 AM3/6/14
to jenkin...@googlegroups.com

Yup

On Mar 6, 2014 3:09 AM, "Christian Willman" <cew...@gmail.com> wrote:
Are you trying to use Eclipse with m2eclipse by any chance? I've been bitten by very near the same issue before. Turns out Jenkins plugins and m2eclipse just don't play nicely.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/Z7T85QQHaGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages