Ivy plugin throws a NullPointerException if you leave the targets field blank

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Ivy plugin throws a NullPointerException if you leave the targets field blank. It should just default to using whatever the default target is in the build.xml file.

      Reported by Cristian Vulpe on the users list.

      Hello..

      I am beginning to set up Hudson with Ivy for our build structure.
      I am using a placeholder build.xml and ivy.xml. When I do a build,
      I get the exception below.
      Could you please take a look and let me know what's up?

      Thank you..
      Cris Vulpe
      Narus, Inc.

      Started by user anonymous
      ...
      Sync complete, took 1470 ms
      Parsing Ivy Descriptor Files
      Discovered a new module apache:hello-ivy hello-ivy
      ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net
      java.lang.NullPointerException
                      at hudson.tasks.Ant.perform(Ant.java:181)
                      at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:478)
                      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
                      at hudson.model.Run.run(Run.java:1210)
                      at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:283)
                      at hudson.model.ResourceController.execute(ResourceController.java:88)
                      at hudson.model.Executor.run(Executor.java:122)
      project=hudson.ivy.IvyModuleSet@78d4ccbb[test_build_2]
      project.getModules()=[hudson.ivy.IvyModule@4191e97d[test_build_2/apache:hello-ivy]]
      FATAL: null
      java.lang.NullPointerException
                      at hudson.tasks.Ant.perform(Ant.java:181)
                      at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:478)
                      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
                      at hudson.model.Run.run(Run.java:1210)
                      at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:283)
                      at hudson.model.ResourceController.execute(ResourceController.java:88)
                      at hudson.model.Executor.run(Executor.java:122)

            Assignee:
            Timothy Bingaman
            Reporter:
            Timothy Bingaman
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: