User.current().getId() always return SYSTEM

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major
    • Component/s: core, pipeline
    • Environment:
      Jenkins 2.138.3
      Firefox/Google Chrome
      ava.runtime.version 1.8.0_181-8u181-b13-2~deb9u1-b13

      During a pipeline declarative script the method User.current().getId() should return the Logged In User Id, but it always returns the string SYSTEM. It is a common issue that you can find in internet forums

            Assignee:
            Unassigned
            Reporter:
            Paulo Eduardo Neves
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: