On 24/07/15 22:23, Mandy wrote:
I have active directory authentication on Jenkins and I am launching job
remotely using the following command line
curl -u testuser:7658756hfjsdngsd8908593486
http://jenkinsserver:8080/job/testjob/build?token=onlytest
How can I using groovy get access to this username in the job?
The solution is essentially the same as your last question about getting
the IP address of a user starting a job.
If the user was started by a logged-in user, the "cause" of the build
will be UserCause, rather than RemoteCause:
https://github.com/jenkinsci/jenkins/blob/ed2988f/core/src/main/java/hudson/model/Cause.java#L374-L376
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/55B2A1BC.5010507%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.