setting build name while job is running using build-name-setter plugin

55 views
Skip to first unread message

sivarajesh jarugula

unread,
Aug 2, 2016, 2:09:16 AM8/2/16
to Jenkins Users, Prasad Gutti
I have a jenkins page with  multiple users running jobs simultaneously
the jenkins page can be logged in using LDAP user accounts.
while jobs are running from multiple users, I would like to see the username in each build number
this helps users does not kill the job IDs of other users (is there any other way to restrict LDSP users see only  their jobs, but not others jobs?)
But I am able to see the username in build history, only after job is finished but not while the job is running as shown in below snapshot:




Following are the settings that I am using for build-name-setting plugin:


If I set the "Set build name before build starts", jenkins gives error saying BUILD_USER_ID is not available.


Thanks in Advance,
Siva Rajesh
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Ioannis Moutsatsos

unread,
Aug 4, 2016, 7:50:59 AM8/4/16
to Jenkins Users, kod...@gmail.com
I would assign the user ID to a build parameter. Then it would be available before the build starts

sivarajesh jarugula

unread,
Aug 4, 2016, 9:30:46 PM8/4/16
to jenkins...@googlegroups.com, Prasad Gutti
Hi Loannis,

Can you elaborate more on how to do this?
where do I assign it? in the executable shell?

Thanks,
SIva Rajesh

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/QbsUQeWTZJY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/32061b3e-e256-44a8-be1e-1f89b01d93de%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ioannis Moutsatsos

unread,
Aug 5, 2016, 7:37:36 AM8/5/16
to Jenkins Users, kod...@gmail.com
Have a look here:

This should get you started


On Tuesday, August 2, 2016 at 2:09:16 AM UTC-4, sivarajesh jarugula wrote:
Reply all
Reply to author
Forward
0 new messages