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

Upload to TestFlight does not work when run on slave

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • testflight-plugin
    • None
    • Testflight 1.2
      Jenkins 1.441
      Linux Master
      OS X Slave

      When a build is run on a slave machine, the TestFlight plugin fails to upload the file to TestFlight.

      java.io.FileNotFoundException: /Jenkins/workspace/Project Folder/build/Ad Hoc-iphoneos/Project_Name-Ad_Hoc-1.0.ipa (No such file or directory)
      

      That is the correct path on the slave.

      TestflightRecorder.java is using java.io.File in the perform method on line 114.
      Using hudson.FilePath(FilePath base, String rel) with base = build.getWorkspace() will help to get the actual file.

      Using FilePath.act can help if you need the code to be executed on the node where the data is located (in this case the slave).

      http://javadoc.jenkins-ci.org/index.html?hudson/FilePath.html

            bradleywehmeier Brad Wehmeier
            bradleywehmeier Brad Wehmeier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: