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

NPE when deploying w/o any services

XMLWordPrintable

      I noticed a problem if one deployes without creating/resetting any services:

      java.lang.NullPointerException
      	at com.activestate.cloudfoundryjenkins.CloudFoundryPushPublisher.perform(CloudFoundryPushPublisher.java:136)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      	at hudson.model.Run.execute(Run.java:1770)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:89)
      	at hudson.model.Executor.run(Executor.java:240)
      

      Looking at the code, I was able to work around with a dummy service not needed for this deployment:
      https://github.com/ActiveState/cloudfoundry-jenkins/blob/08761076bf672a94fe2e8a76ef246feec143eb8e/src/main/java/com/activestate/cloudfoundryjenkins/CloudFoundryPushPublisher.java#L136

      Since the version 1.4 is just hitting the update servers, I made the priority "critical".

      Otherwise I really like the functionality to create and reset services. It works beautifully. And it is a very tiny thing in the configuration. Kudos!

            williamg William Gautier
            buchen Andreas Buchen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: