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] 
> <javascript:>>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] <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.

Reply via email to