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

Remote slave with Maven Repo Cleaner enabled as post build task fails.

XMLWordPrintable

      The slave is a remote linux server (host is linux too, although differing distros). It is connected to via SSH.

      I got this stacktrace in my build output:

      14:50:30 Deleting old workspace snapshot from #440.
      14:50:30 ERROR: Publisher org.jenkinsci.plugins.mavenrepocleaner.MavenRepoCleanerPostBuildTask aborted due to exception
      14:50:30 hudson.util.IOException2: remote file operation failed: /home/jenkins/workspace/jobname/.repository at hudson.remoting.Channel@2a1f0c81:slavename
      14:50:30 	at hudson.FilePath.act(FilePath.java:847)
      14:50:30 	at hudson.FilePath.act(FilePath.java:824)
      14:50:30 	at org.jenkinsci.plugins.mavenrepocleaner.MavenRepoCleanerPostBuildTask.perform(MavenRepoCleanerPostBuildTask.java:44)
      14:50:30 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      14:50:30 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      14:50:30 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
      14:50:30 	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994)
      14:50:30 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      14:50:30 	at hudson.model.Run.execute(Run.java:1541)
      14:50:30 	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      14:50:30 	at hudson.model.ResourceController.execute(ResourceController.java:88)
      14:50:30 	at hudson.model.Executor.run(Executor.java:236)
      14:50:30 Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@4d0b24be
      14:50:30 	at hudson.remoting.UserRequest.serialize(UserRequest.java:166)
      14:50:30 	at hudson.remoting.UserRequest.<init>(UserRequest.java:62)
      14:50:30 	at hudson.remoting.Channel.call(Channel.java:663)
      14:50:30 	at hudson.FilePath.act(FilePath.java:840)
      14:50:30 	... 11 more
      14:50:30 Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.mavenrepocleaner.MavenRepoCleanerPostBuildTask
      14:50:30 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
      14:50:30 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      14:50:30 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      14:50:30 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      14:50:30 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      14:50:30 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      14:50:30 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      14:50:30 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      14:50:30 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      14:50:30 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      14:50:30 	at hudson.remoting.UserRequest._serialize(UserRequest.java:155)
      14:50:30 	at hudson.remoting.UserRequest.serialize(UserRequest.java:164)
      14:50:30 	... 14 more
      

            Unassigned Unassigned
            lshatzer Larry Shatzer, Jr.
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: