Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22269

Scriptler scripts run as SYSTEM when called from a job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • scriptler-plugin
    • 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.

            domi Dominik Bartholdi
            p14n Dean Pehrsson-Chapman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: