User not passing to job history if submitted by URL?

16 views
Skip to first unread message

Don Alcombright

unread,
Feb 2, 2017, 2:26:15 PM2/2/17
to Jenkins Users
We have an internal build page setup that passes builds off via URL. This method works fine but for some reason, although the job passes fine with

http://username:apitoken@jenkins-server....

the build history doesn't show the user that kicked it off. If i submit via the UI of Jenkins it does. Any thoughts on what I am doing wrong?

Daniel Beck

unread,
Feb 2, 2017, 5:19:07 PM2/2/17
to jenkins...@googlegroups.com

> On 02.02.2017, at 20:26, Don Alcombright <don.alc...@gmail.com> wrote:
>
> Any thoughts on what I am doing wrong?

You forgot to include the interesting parts of the URL you're using. Strip out job names or whatever, but leave the rest intact.

Also, what does Jenkins tell you is the cause for the build, if not the user triggering it?

Don Alcombright

unread,
Feb 3, 2017, 10:01:46 AM2/3/17
to Jenkins Users, m...@beckweb.net
http://username:TOKEN@MACHINENAME:8080/job/CATRADER%20Suite%20Builder/buildWithParameters?token=ctbuild&BuildDatabases=False&BuildWorkstation=True&BuildReports=False&BuildLossfiles=False&ctreltype=Nightly&ctrelver=Automation&ctrelname=Nightly&builddestination=\\PATHTOFOLDER&isversion=2015&Email_Recipients=bl...@blah.com

All it says next to the user is N/A, if I login to jenkins and kick it off it gets my AD user like it should.

Daniel Beck

unread,
Feb 3, 2017, 10:21:43 AM2/3/17
to Don Alcombright, Jenkins Users
Could be related to use of the build token. Try without, and make sure your user has Build permission.

Don Alcombright

unread,
Feb 3, 2017, 1:38:16 PM2/3/17
to Jenkins Users, don.alc...@gmail.com, m...@beckweb.net
how do I tell it what do build without the build token? I thought that was required for remote building?

Don Alcombright

unread,
Feb 6, 2017, 8:41:36 AM2/6/17
to Jenkins Users, don.alc...@gmail.com, m...@beckweb.net
So its improving sort of haha. Now instead of "N/A" it posts "anonymous" any thoughts on that?


On Friday, February 3, 2017 at 10:21:43 AM UTC-5, Daniel Beck wrote:

Daniel Beck

unread,
Feb 7, 2017, 2:12:44 AM2/7/17
to jenkins...@googlegroups.com

> On 06.02.2017, at 14:41, Don Alcombright <don.alc...@gmail.com> wrote:
>
> any thoughts on that?

Build token is needed if and only if whoever you authenticate as has permission to view, but not build, the job.

Clearly, no authentication happens here, probably because Jenkins doesn't ask for it. Read https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients

Reply all
Reply to author
Forward
0 new messages