I mean the user that is logged on jenkins and started a jenkins job that in 
the build step refers a pom.xml that declares this plugin. 



Em segunda-feira, 5 de maio de 2014 14h21min39s UTC-3, Kevin Fleming 
escreveu:
>
> What do you mean by 'running'? Does this plugin provide a build step, a 
> publisher, or something else? If it provides something that is used during 
> a build, then you want the user who initiated the build.
>
> ----- Original Message -----
> From: jenkins...@googlegroups.com <javascript:>
> To: jenkins...@googlegroups.com <javascript:>
> Cc: bma...@batmat.net <javascript:>
> At: May 5 2014 12:49:10
>
> 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" <mauroand...@gmail.com> 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 <mauroand...@gmail.com> 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 jenkinsci-use...@googlegroups.com.
>>>>>> 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 jenkinsci-use...@googlegroups.com.
>>> 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 jenkinsci-use...@googlegroups.com <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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to