In case you're working on the the code parallel in an IDE - especially Eclipse 
- try a mvn clean as Ecplise tends to f*ck up the generated files in the target 
dir.
BTW: mvn package install is redundant as install includes package
-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



rgr <[email protected]> schrieb:

Hi Victor,

can you maybe give me a quick walk-through how got it to work!?

What I tried so far are the following two approaches:
1) Build on command line:
Like shown in plugin tutorial: mvn package && mvn install

2) Build with jenkins:
Create a new freestyle jenkins job
add git repository with my source
add a "maven goals" build step
set goals "package install"
-> then apply and run the job

In both cases I then took the newly created myplugin.hpi file and
uploaded it to my jenkins instance via the /pluginManager/advanced
page. Then I restarted jenkins.

Unfortunately both approaches brought no result. My plugin shows up in
the list of installed plugins, but my extension never gets called.

Is there a different way to build jenkins plugins of which I do not
know? Any help would be much appriciated.

Thanks!



On 7 Apr., 10:32, Victor Polyansky <[email protected]> wrote:
> Hi,
>
> I tried your code on freestyle project and it worked, but on Maven project
> it didn't. It seems to me that there's some bug at
> hudson.maven.MavenTestDataPublisher...
>
>
>
> On Saturday, April 7, 2012 4:47:38 AM UTC+4, rgr wrote:
>
> > Hi,
>
> > I tried to create my first plugin for jenkins today. But after hours
> > of trying I'm there is still no progress.
>
> > I started of with the demo plugin created by "mvn hpi:create". That
> > worked fine. Then I removed the build step class and added a
> > TestDataPublisher extension instead.
>
> > Here is the code how it looks so far:
> >http://pastebin.com/zk9tZHgL
>
> > The plugin shows up in the installed plugins list. But jenkins never
> > calls my extension.
>
> > Can somebody help me? Any suggestions what I can try?
> > Thanks!

Reply via email to