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

Permission denied when using Jenkins to run commands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • _unsorted
    • Window 10 , 64 BIT

      I have installed Jenkins ver. 2.13 on window 10 64 BIT OS, Now I want to create folder and copy/past file from one source to destination through batch file using "Execute Windows batch command" plugin. Where destination path is in network, I can create folder on destination path from "Common prompt" (using mkdir commoand) but if i am executing same command from "Execute Windows batch command" plugin in that it show me "Access Denied" permission error. I have full rights on destination folder. then what permission required to set and where and how.

      Console Error :

      Started by user Bhavesh Patel
      Building in workspace D:\Projects\Live\XYZ
      [XYZ] $ cmd /c call C:\WINDOWS\TEMP\hudson2713606116732809358.bat

      D:\Projects\Live\XYZ>mkdir "\\192.192.8.215\Publish\XYZ\invoice\backup\1"
      Access is denied.

      D:\Projects\Live\XYZ>exit 1
      Build step 'Execute Windows batch command' marked build as failure
      Finished: FAILURE

            oleg_nenashev Oleg Nenashev
            bhaveshsoft1 Bhavesh Patel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: