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

Jobs are still running as the Windows Service user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • None
    • Jenkins 2.7.4

      Ok this may be just an incorrect understanding of what this plugin does but apparently the jobs are still being run as the normal service account user.

      I am using AD for authentication and I am logged in as myself. If I trigger the build (set to Run as User Triggering the Build) I can see in the log that it says "Running as Leandro" but then if I execute a batch file and run a "whoami" command I still get the default windows service user.

      {{Started by user Leandro
      Running as Leandro
      [EnvInject] - Loading node environment variables.
      Building in workspace C:\Jenkins\workspace\TestUser
      [TestUser] $ cmd /c call C:\Users\HICCIU~1\AppData\Local\Temp\hudson2968857796480795156.bat

      C:\Jenkins\workspace\TestUser>whoami
      centre\hicciuser
      }}

      Am I expecting something that the plugin is not meant to do? What is the plugin meant for then?

            tallmaris Leandro Tramma
            tallmaris Leandro Tramma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: