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

Sequential triggering of jobs sometimes fails when the file parameter is read-only

    Details

    • Similar Issues:

      Description

      Use-case:
      1) Job sequentially triggers builds using the same files as a build parameters. These files have read-only permission. In order to pass parameters to file factory, we use *.txt wildcard
      2) Sometimes second triggering fails with "Permission denied" error (see the log below)
      3) As i see, files in "builds/$

      {ID}

      /parameter-files" have read-only attributes from the initial file

      FATAL: Failed to compute binary file parameters from *.txt
      hudson.util.IOException2: Failed to compute binary file parameters from *.txt
      at hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:93)
      at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getDynamicBuildParameters(BuildTriggerConfig.java:404)
      at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:374)
      at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:57)
      at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:85)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565)
      at hudson.model.Run.execute(Run.java:1592)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)
      Caused by: hudson.util.IOException2: Failed to extract MY_WORKSPACE/*.txt
      at hudson.FilePath.readFromTar(FilePath.java:2022)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1934)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1839)
      at hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:64)
      ... 13 more
      Caused by: java.io.FileNotFoundException: HOME_DIR/builds/2013-10-25_12-19-54/parameter-files/file.txt (Permission denied)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
      at hudson.util.IOUtils.copy(IOUtils.java:35)
      at hudson.FilePath.readFromTar(FilePath.java:2012)
      ... 16 more

        Attachments

          Activity

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: