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

Cloud Foundry Plugin Error - Distributed System

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • cloudfoundry-plugin
    • None
    • Jenkins 2.60.2 - cloud foundry plugin 2.1.1

      When using cloud foundry plugin v2.1.1, get the following error when trying to push to cloud foundry. I have the same setup on a standalone Jenkins server and the plugin appears to work fine, but apparently there is an issue on the "distributed" Jenkins server? Maybe I have missed a configuration item but not sure. I am not using a manifest.yml, but may try that as well. Any help would be appreciated.
      [INFO] Installing /opt/ltsscratch/jenkins/workspace/hello-pcf-deploy/target/hello-0.0.1-SNAPSHOT.war to /opt/ltsscratch/jenkins/.m3/repository/hello/hello/0.0.1-SNAPSHOT/hello-0.0.1-SNAPSHOT.war
      [INFO] Installing /opt/ltsscratch/jenkins/workspace/hello-pcf-deploy/pom.xml to /opt/ltsscratch/jenkins/.m3/repository/hello/hello/0.0.1-SNAPSHOT/hello-0.0.1-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.394 s
      [INFO] Finished at: 2017-09-28T15:09:57-05:00
      [INFO] Final Memory: 11M/225M
      [INFO] ------------------------------------------------------------------------
      Cloud Foundry Plugin:
      INFO: Looks like we are on a distributed system... Transferring build artifacts from the slave to the master.
      INFO: Transferring from /opt/ltsapps/jenkins/workspace/hello-pcf-deploy/hello-0.0.1-SNAPSHOT.war to /tmp/appDir3314993714178697175
      java.lang.IllegalStateException: Unzipped output directory was empty.
      at com.hpe.cloudfoundryjenkins.CloudFoundryPushTask.transferArtifactsToMaster(CloudFoundryPushTask.java:267)
      at com.hpe.cloudfoundryjenkins.CloudFoundryPushTask.perform(CloudFoundryPushTask.java:163)
      at com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.perform(CloudFoundryPushPublisher.java:130)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621)
      at hudson.model.Run.execute(Run.java:1760)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:405)
      Build step 'Push to Cloud Foundry' marked build as failure
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Started calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 0 seconds
      Finished: FAILURE
       

            sworisbreathing Steven Swor
            bekirby Brent Kirby
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: