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

Jenkins Windows Service SVN checkout permissions problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • None

      Hello
      Could I report a possible problem with Jenkins Service. On Windows this runs as group "LocalService", this then follows my "Build a free-style software project" item, which does:

      • SVN checkout
      • Build step calls my "build.bat"

      build.bat has problems copying file, because all files and directories checked out from SVN by Jenkins have Owner "Administrators"

      If I change the Jenkins Service in Control Panel->Administrative Tools->Services to run as a specific user "OFFICE\builduser" (Rather than "Local System account"). I delete the SVN checkout, and run again the Jenkins Item, I still see all files and directories checked out by Jenkins have Owner "Administrators".

      Any idea how to get files to be checked out by Jenkins to have the correct Owner?

      If I login to the machine as builduser, "run CMD.exe as Administrator", it can run build.bat without problems, so it seems a permissions problem.

      build.bat runs some cygwin commands, that otherwise work when run as a regular user (me on my machine, or the machine with Jenkins)

      Thanks for any suggestions.

            Unassigned Unassigned
            jgrant Jonathan Grant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: