Details
-
Type:
Improvement
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: batch-task-plugin
-
Labels:None
-
Environment:Platform: All, OS: All
-
Similar Issues:
Description
In addition to the existing Hudson provided environment vars, it would be very nice to have the username
of the logged-in user exposed when running batch tasks. The use-case is to be able to send an email
from the task that contains the username of the user that kicked it off.
I'd suggest HUDSON_USER as the name of the var.
Attachments
Issue Links
- depends on
-
JENKINS-291 a record needed why a build has started (what triggered it)
-
- Closed
-
- is blocking
-
JENKINS-5770 Batch Tasks Plugin should receive the current user in the URL
-
- Open
-
Code changed in hudson
User: : mindless
Path:
trunk/hudson/plugins/batch-task/src/main/java/hudson/plugins/batch_task/BatchRun.java
trunk/hudson/plugins/batch-task/src/test/java/hudson/plugins/batch_task/BatchTaskTest.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=25330
Log:
[FIXED JENKINS-5039] [FIXED JENKINS-1628] [FIXED JENKINS-1316]
Environment variable bugfix (global/node variables not set in env for tasks)
and enhancements (add TASK_ID env var, add HUDSON_USER if task triggered by user)