-
Bug
-
Resolution: Unresolved
-
Major
-
None
When running an script in the scriptler interface, new Cause.UserIdCase().getUserName() returns the logged in user. When a script is called from a job the user is SYSTEM. It would seem preferable to add the UserIdCause to the GroovyScript object and make it available as a variable to the GroovyShell. Happy to contribute this change if it seems useful.
[JENKINS-22269] Scriptler scripts run as SYSTEM when called from a job
Workflow | Original: JNJira [ 154350 ] | New: JNJira + In-Review [ 178772 ] |