I don't think Jenkins has BUILD_USER var. If you're using a plugin to generate it, you may want to check there.
On Friday, November 16, 2018 at 2:57:24 AM UTC-8, rohit verma wrote: > > Hello, > > I am calling a Jenkins Job from remote system by following command. > > curl -k -v -H -XPOST > "https://<USERNAME>:<AuthToken>@JenkinsURL/job/JobName/buildWithParameters?token=TokenName&PRM=PRM_VALUE" > > > What i noticed that the environment variable BUILD_USER is not set via > remote API call. (In my case BUILD_USER is null however the user is > triggering it with his/her authentication token). Is there a way to make > sure that BUILD_USER is set to the the user name of the caller of this job > via REST Like API (Curl command)? > > > Thanks in advance. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8c9e36db-0c71-48ba-87e9-bdc76f12dfc2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
