Remote Jenkins build trigger with authentication, message should be “Started by User XYZ”

39 views
Skip to first unread message

Pritesh Saharey

unread,
Dec 27, 2015, 9:36:39 AM12/27/15
to jenkins...@googlegroups.com
Hi All,

When I trigger my Jenkins job remotely using URL I use authentication to trigger build like this:
 
wget --auth-no-challenge --http-user=user --http-password=apiToken http://jenkins.yourcompany.com/job/your_job/build?token=TOKEN
 
Build gets triggered without any issue but the message on build console comes as “Started by remote host 10.BBB.YYY.XX” instead the message should as “Started by User XYZ” as it comes when user triggers build through Jenkins UI.
Is there any way I can achieve this in remote trigger of build with authentication through URL, the users are LDAP configured.

Thanks,
Jhoom
Reply all
Reply to author
Forward
0 new messages