Re: maven plugin - how to obtain the jenkins user name

2014-05-08 Thread Mauro Flores
> > Look at https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin > That's it!!! I just need to code this at my maven plugin: System.getProperty("BUILD_USER_ID"). Thank you very much Larry. Thanks Gavriil Konovalenko, the plugin author. Jenkins is awsome! -- You received this

Re: maven plugin - how to obtain the jenkins user name

2014-05-08 Thread Larry Shatzer, Jr.
Look at https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin On Thu, May 8, 2014 at 10:29 AM, Mauro Flores wrote: > I understand that maven and jenkins are unrelated projects. > I've thought that when the maven plugin is running inside a job started by > jenkins, the jekins running

Re: maven plugin - how to obtain the jenkins user name

2014-05-08 Thread Mauro Flores
I understand that maven and jenkins are unrelated projects. I've thought that when the maven plugin is running inside a job started by jenkins, the jekins running context could be available somehow for maven plugin code. For instance, each jenkins job runs in a different jvm, it would be easy t

Re: maven plugin - how to obtain the jenkins user name

2014-05-07 Thread Baptiste Mathus
Le 5 mai 2014 23:08, "Mauro Flores" a écrit : >> >> Then you do mean the user who initiated the job; note that this does not necessarily mean a user who was logged in, as jobs can be started by 'anonymous' (from an SCM trigger for example), or via the API. > > > I'm aware of it. > >> The Build obj

Re: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Mauro Flores
> > Then you do mean the user who initiated the job; note that this does not > necessarily mean a user who was logged in, as jobs can be started by > 'anonymous' (from an SCM trigger for example), or via the API. I'm aware of it. The Build object itself should have a record of the user who i

Re: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
Then you do mean the user who initiated the job; note that this does not necessarily mean a user who was logged in, as jobs can be started by 'anonymous' (from an SCM trigger for example), or via the API. The Build object itself should have a record of the user who initiated it, there's no need

Re: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Mauro Flores
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 >

Re: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
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: jenkinsci-users@googlegroups.com To: jenkinsci-users@goog

Re: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Mauro Flores
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 Ma

Re: maven plugin - how to obtain the jenkins user name

2014-05-03 Thread Baptiste Mathus
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" a écrit : > Maybe I haven't expressed myself correctly. > > > I get a ClassNotFound exception for hu

Re: maven plugin - how to obtain the jenkins user name

2014-04-30 Thread Mauro Flores
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.

Re: maven plugin - how to obtain the jenkins user name

2014-04-29 Thread Mauro Flores
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 j

Re: maven plugin - how to obtain the jenkins user name

2014-04-26 Thread Michael Clarke
Use User.current() On 25 April 2014 23:17, Mauro Flores 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 re

maven plugin - how to obtain the jenkins user name

2014-04-25 Thread Mauro Flores
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 ema