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

Scriptler scripts run as SYSTEM when called from a job

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

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

          People

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

            Dates

              Created:
              Updated: