heroku / heroku-jenkins-plugin

DEPRECATED: A plugin for interacting with Heroku during Jenkins builds
45 stars 9 forks source link

Artifact Deployment Fails with Master-Slave Setup #5

Closed ryanbrainard closed 12 years ago

ryanbrainard commented 12 years ago
Found existing app: jenkins-master-slave-test
Preparing to deploy WAR to jenkins-master-slave-test
ERROR: remote file operation failed: /Users/brainard/Development/jenkins-slave-rfs/workspace/sample-job at hudson.remoting.Channel@c6f558a:my-slave
hudson.util.IOException2: remote file operation failed: /Users/brainard/Development/jenkins-slave-rfs/workspace/sample-job at hudson.remoting.Channel@c6f558a:my-slave
        at hudson.FilePath.act(FilePath.java:835)
        at hudson.FilePath.act(FilePath.java:821)
        at com.heroku.AbstractArtifactDeployment.perform(AbstractArtifactDeployment.java:40)
        at com.heroku.AbstractHerokuBuildStep.perform(AbstractHerokuBuildStep.java:94)
        at com.heroku.AbstractArtifactDeployment.perform(AbstractArtifactDeployment.java:25)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
        at hudson.model.Build$RunnerImpl.build(Build.java:178)
        at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480)
        at hudson.model.Run.run(Run.java:1438)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:239)
Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@5e9ed2e4
        at hudson.remoting.UserRequest.serialize(UserRequest.java:166)
        at hudson.remoting.UserRequest.<init>(UserRequest.java:62)
        at hudson.remoting.Channel.call(Channel.java:645)
        at hudson.FilePath.act(FilePath.java:828)
        ... 13 more
Caused by: java.io.NotSerializableException: com.heroku.WarDeployment
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
        at hudson.remoting.UserRequest._serialize(UserRequest.java:155)
        at hudson.remoting.UserRequest.serialize(UserRequest.java:164)
        ... 16 more
Build step 'Heroku: Deploy WAR Artifact' marked build as failure
Finished: FAILURE
ryanbrainard commented 12 years ago

FYI: @recampbell @anandbn Definitely an issue with master-slave setup. I'll work on getting the jobs to serialize correctly.

ryanbrainard commented 12 years ago

This is has been fixed in e03851c8d8706b24acf6ca24b9186902d54d3765 and released in 0.3-BETA, which has been uploaded to jenkins-ci.org, but still not in the update center. It should be available for auto update in the next few hours, but in the meantime, its downloadable directly from: http://maven.jenkins-ci.org:8081/content/repositories/releases/com/heroku/heroku-jenkins-plugin/0.3-BETA/heroku-jenkins-plugin-0.3-BETA.hpi

anandbn commented 12 years ago

Ryan - Thanks for the update. I'll try Cloudbees/Jenkins next week after updating the plugin.