• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • bulk-builder-plugin
    • None
    • Ubuntu 10.04 Server

      When try to run all jobs in a view it gives an error like:

      Status Code: 500
      Exception:
      Stacktrace:

      java.lang.IllegalArgumentException: No enum const class org.jvnet.hudson.plugins.bulkbuilder.model.BuildType.ON
      at java.lang.Enum.valueOf(Enum.java:214)
      at org.jvnet.hudson.plugins.bulkbuilder.model.BuildType.valueOf(BuildType.java:31)
      at org.jvnet.hudson.plugins.bulkbuilder.BulkBuilderAction.doBuild(BulkBuilderAction.java:93)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:636)

          [JENKINS-12779] Error when try to run all jobs in a view

          Hi Alper, I've not been able to replicate this yet. Could you tell me what version of bulk builder you're using and the full name of the view you're attempting to build? Thanks.

          Simon Westcott added a comment - Hi Alper, I've not been able to replicate this yet. Could you tell me what version of bulk builder you're using and the full name of the view you're attempting to build? Thanks.

          Alper Tekinap added a comment -

          Hi. From the Manage Plugins page the version of bulk builder is 1.4 and the name of the view i try to build is nightly-buils. i try "Build options > Limit to jobs in view > nightly-buils" and get this error. my jenkins version 1.451 and i am using ubuntu 11.05.

          Alper Tekinap added a comment - Hi. From the Manage Plugins page the version of bulk builder is 1.4 and the name of the view i try to build is nightly-buils. i try "Build options > Limit to jobs in view > nightly-buils" and get this error. my jenkins version 1.451 and i am using ubuntu 11.05.

          I've only been able to re-create this by editing the HTML to manually set the 'build' input value to 'ON'. I've wrapped this code in a try/catch to prevent the exception, but I still don't get how you're able to trigger error...

          Simon Westcott added a comment - I've only been able to re-create this by editing the HTML to manually set the 'build' input value to 'ON'. I've wrapped this code in a try/catch to prevent the exception, but I still don't get how you're able to trigger error...

          Code changed in jenkins
          User: Simon Westcott
          Path:
          src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java
          http://jenkins-ci.org/commit/bulk-builder-plugin/ebce082e8a4a8d73df6e71807b87864ec34c2b16
          Log:
          [Refs JENKINS-12779] Catch invalid build types

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Simon Westcott Path: src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java http://jenkins-ci.org/commit/bulk-builder-plugin/ebce082e8a4a8d73df6e71807b87864ec34c2b16 Log: [Refs JENKINS-12779] Catch invalid build types

          dogfood added a comment -

          Integrated in plugins_bulk-builder #66
          [Refs JENKINS-12779] Catch invalid build types (Revision ebce082e8a4a8d73df6e71807b87864ec34c2b16)

          Result = SUCCESS
          Simon Westcott :
          Files :

          • src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java

          dogfood added a comment - Integrated in plugins_bulk-builder #66 [Refs JENKINS-12779] Catch invalid build types (Revision ebce082e8a4a8d73df6e71807b87864ec34c2b16) Result = SUCCESS Simon Westcott : Files : src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java

            swestcott Simon Westcott
            alper_tekinalp Alper Tekinap
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: