Sounds good. Created https://github.com/jenkinsci/build-user-vars-plugin
On 02/14/2012 10:43 AM, Gavriil Konovalenko wrote:
"column" is particular case. More generally this plugin just sets build variables with details of the user, started the build, so I suggest to stop with: "build-user-vars-plugin" (or ...-variables-...). Thanks for advise, I'll have a look. Now I'm doing it using build.getCause(...): first trying to get information from UserIdCause.class (username & id), and if it isn't available (may be due to usage of older version of Jenkins), then use UserCause.class. On Tue, Feb 14, 2012 at 10:36 PM, Kohsuke Kawaguchi <kkawagu...@cloudbees.com <mailto:kkawagu...@cloudbees.com>> wrote: What about build-user-column-plugin? BTW, you can get that information more cleanly via Run.getCause(UserCause.class) On 02/14/2012 10:32 AM, Gavriil Konovalenko wrote: Thank you very much, Kohsuke! There is no difference for me to give the name or to push it in my repo, what is more convenient way for you? From my description I'd name plugin as "Jenkins Build User Variables Setter" (jenkins-build-user-vars-__setter), or simply "Jenkins Build User" (jenkins-build-user). Also I will be glad for your advise, for better name. Regards, Gavriil Konovalenko On Tue, Feb 14, 2012 at 10:25 PM, Kohsuke Kawaguchi <kkawagu...@cloudbees.com <mailto:kkawagu...@cloudbees.com> <mailto:kkawaguchi@cloudbees.__com <mailto:kkawagu...@cloudbees.com>>> wrote: I've added your as a committer. Welcome aboard! But like Vojtech said, we need you to either name the plugin or have it pushed in your repository first to be able to host it here. On 02/13/2012 03:24 PM, Gavriil Konovalenko wrote: Hi, I've just registered on https://github.com/, my ID is: gkonovalenko In our project we have internal portal where with other features we have table with last deployments. One of the column in this table is "User" and it is filled with name of user started the build. Some time ago we took the name of the user through parsing string "Started by ..." from file .../jobs/%JOB_NAME%/builds/$____BUILD_ID/log It seemed to be ugly solution and I tried to find normal way or plugin to get name or id of user who started the build, but without success. As I noticed, that there are other people who was looking for the same functionality, As result -- I've created simple plugin named jenkins- build-user. This plugin set build variables, containing jenkins user id, full, first and last names. Could you please grant me commit rights to host this plugin? GitHub ID: gkonovalenko Plugin name: jenkins-build-user -- Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/ Try Nectar, our professional version of Jenkins -- Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/ Try Nectar, our professional version of Jenkins
-- Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/ Try Nectar, our professional version of Jenkins