java.io.IOException

Failed to patch /var/lib/jenkins/jobs/puppet-modules-peerreview/workspace/a/modules/puppet/files/master/hiera.yaml

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web17676

  • via Jenkins JIRA by woneill, 1 year ago
    Failed to patch /var/lib/jenkins/jobs/puppet-modules-peerreview/workspace/a/modules/puppet/files/master/hiera.yaml
  • via Jenkins JIRA by woneill, 1 year ago
    Failed to patch /var/lib/jenkins/jobs/puppet-modules-peerreview/workspace/a/modules/puppet/files/master/hiera.yaml
  • Failed to patch /var/lib/jenkins/jobs/reviewboard-test/workspace/trunk/PhabricatorTest/2.txt
  • Stack trace

    • java.io.IOException: Failed to patch /var/lib/jenkins/jobs/puppet-modules-peerreview/workspace/a/modules/puppet/files/master/hiera.yaml at org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardParameterValue$ApplyTask.invoke(ReviewboardParameterValue.java:229) at org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardParameterValue$ApplyTask.invoke(ReviewboardParameterValue.java:219) at hudson.FilePath.act(FilePath.java:914) at hudson.FilePath.act(FilePath.java:887) at org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardParameterValue.applyPatch(ReviewboardParameterValue.java:164) at org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardParameterValue.access$200(ReviewboardParameterValue.java:47) at org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardParameterValue$ReviewboardBuildWrapper.setUp(ReviewboardParameterValue.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:153) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523) at hudson.model.Run.execute(Run.java:1689) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: com.cloudbees.diff.PatchException: Cannot apply hunk @@ 20 at com.cloudbees.diff.ContextualPatch.applyHunk(ContextualPatch.java:228) at com.cloudbees.diff.ContextualPatch.applyPatch(ContextualPatch.java:155) at com.cloudbees.diff.ContextualPatch.patch(ContextualPatch.java:108) at org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardParameterValue$ApplyTask.invoke(ReviewboardParameterValue.java:225) ... 12 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.