I need to pass the username of the requestor of a build down to the script that is actually doing the work. Looking at the console output for a particular build, the first
In your Job add "Execute system Groovy script":
def yourUserName = build.causes[0].userId