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

Failed to copy error while copying mobileprovision file

XMLWordPrintable

      I have uploaded provisioning file in KeyChain and Provisioning Profiles management plugin.
      In job configuration, in Build environment section, Monile Provisioning Profile, uploaded profile is selected.
      When build is run, I get these errors
      When I run a command in terminal to copy file from source folder to destination folder, it succeeds. But jenkins is unable to copy

      FATAL: Failed to copy /Users/Shared/Jenkins/Home/kpp_upload/abcdfe-e441-407b-ba4a-34e97bf71f5b.mobileprovision to /Users/*****/Library/MobileDevice/Provisioning Profiles/abcdfe-e441-407b-ba4a-34e97bf71f5b.mobileprovision
      java.io.IOException: Failed to copy /Users/Shared/Jenkins/Home/kpp_upload/abcdfe-e441-407b-ba4a-34e97bf71f5b.mobileprovision to /Users/*****/Library/MobileDevice/Provisioning Profiles/abcdfe-e441-407b-ba4a-34e97bf71f5b.mobileprovision
      at hudson.FilePath.copyTo(FilePath.java:2018)
      at com.sic.plugins.kpp.KPPProvisioningProfilesBuildWrapper.copyProvisioningProfiles(KPPProvisioningProfilesBuildWrapper.java:161)
      at com.sic.plugins.kpp.KPPProvisioningProfilesBuildWrapper.setUp(KPPProvisioningProfilesBuildWrapper.java:99)
      at hudson.model.Build$BuildExecution.doRun(Build.java:156)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1720)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:404)
      Caused by: java.io.FileNotFoundException: /Users/*****/Library/MobileDevice/Provisioning Profiles/abcdfe-e441-407b-ba4a-34e97bf71f5b.mobileprovision (Permission denied)
      at java.io.FileOutputStream.open0(Native Method)
      at java.io.FileOutputStream.open(FileOutputStream.java:270)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
      at hudson.FilePath.write(FilePath.java:1907)
      at hudson.FilePath.copyTo(FilePath.java:2011)
      ... 8 more
      Finished: FAILURE

            Unassigned Unassigned
            srisreeku Sri Sreeku
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: