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

Scriptler scripts run as SYSTEM when called from a job

    • 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.

          [JENKINS-22269] Scriptler scripts run as SYSTEM when called from a job

          PR's are always welcome

          But I'll need some more time to dig into it to see which usecases this is really solves

          Dominik Bartholdi added a comment - PR's are always welcome But I'll need some more time to dig into it to see which usecases this is really solves

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

              Created:
              Updated: