I'd like to log who is running this maven plugin. I thought I could access the jenkins user from a simple maven plugin running on jenkins.. I'm afraid I'll have to build (or extend) a jenkins plugin to achieve that.
Regards. Mauro. Em sábado, 3 de maio de 2014 12h04min32s UTC-3, Baptiste Mathus escreveu: > > Well, no indeed. Maven is an independent project and generally runs out of > Jenkins. > > Maybe you should explain a bit more what you are trying to achieve. > > Cheers > Le 1 mai 2014 00:50, "Mauro Flores" <[email protected] <javascript:>> > a écrit : > >> Maybe I haven't expressed myself correctly. >> >> >> I get a ClassNotFound exception for hudson.model.User. >> >> Does a maven plugin (not a jenkins plugin) has access to jenkins >> classpath ? >> >> Regards. Mauro Flores. >> >> Em terça-feira, 29 de abril de 2014 18h29min31s UTC-3, Mauro Flores >> escreveu: >>> >>> Thanks. Michael. >>> >>> A complementary question. >>> >>> Do I have to add the jar of this class "hudson.model.User" to my maven >>> plugin jar? Or the classpath of jenkins is visible to the execution of my >>> maven plugin? >>> If I have to add, can you help how to define the dependency. >>> If I do like below I lot of jars are brought. >>> >>> <dependency> >>> <groupId>org.jenkins-ci.main</groupId> >>> <artifactId>jenkins-core</artifactId> >>> <version>1.543</version> >>> </dependency> >>> >>> >>> Em sábado, 26 de abril de 2014 11h59min44s UTC-3, Michael Clarke >>> escreveu: >>>> >>>> Use >>>> User.current()<http://javadoc.jenkins-ci.org/hudson/model/User.html#current()> >>>> >>>> >>>> On 25 April 2014 23:17, Mauro Flores <[email protected]> wrote: >>>> >>>>> Hello, >>>>> >>>>> I'm building a maven plugin. >>>>> I'd like to access the name of the user logged on jenkins inside the >>>>> maven plugin. >>>>> >>>>> Regards. Mauro. >>>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Jenkins Users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
